aboutsummaryrefslogtreecommitdiff
path: root/internal/game/act_clean.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/act_clean.go')
-rw-r--r--internal/game/act_clean.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/game/act_clean.go b/internal/game/act_clean.go
index 4efe293..0540cb1 100644
--- a/internal/game/act_clean.go
+++ b/internal/game/act_clean.go
@@ -68,7 +68,7 @@ func (g *Game) advanceClean(sess *net.Session, p *player.Player) {
}
consumeID := plan[0].id
- for i := 0; i < 28; i++ {
+ for i := 0; i < player.MaxInventorySlots; i++ {
slot := p.InvSlot(i)
if slot != nil && slot.ItemID == consumeID {
slot.ItemID = matchItem.ID