aboutsummaryrefslogtreecommitdiff
path: root/internal/game/production_engine.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/production_engine.go')
-rw-r--r--internal/game/production_engine.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/game/production_engine.go b/internal/game/production_engine.go
index 89d6f55..9795db0 100644
--- a/internal/game/production_engine.go
+++ b/internal/game/production_engine.go
@@ -440,7 +440,7 @@ func (g *Game) canContinueProduction(p *player.Player, item *item.ItemDef) bool
}
outDef, _ := g.ItemStore.Load(item.ID)
if outDef != nil && outDef.Stackable {
- for i := 0; i < 28; i++ {
+ for i := 0; i < player.MaxInventorySlots; i++ {
slot := p.InvSlot(i)
if slot != nil && slot.ItemID == item.ID {
return true