Fix IndexError in InventoryPage restock all logic by using inventory.getMax() instead of ToontownBattleGlobals.MaxProps

This commit is contained in:
Toontown Super 2025-12-20 10:48:07 -05:00
parent 9e0005dd81
commit 9c427c6acb
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class InventoryPage(ShtikerPage.ShtikerPage):
# Calculate how many gags are needed
currentCount = inventory.inventory[trackIndex][levelIndex]
maxCount = ToontownBattleGlobals.MaxProps[trackIndex][levelIndex]
maxCount = inventory.getMax(trackIndex, levelIndex)
neededCount = maxCount - currentCount
if neededCount > 0: