Fix IndexError in InventoryPage restock all logic by using inventory.getMax() instead of ToontownBattleGlobals.MaxProps
This commit is contained in:
parent
9e0005dd81
commit
9c427c6acb
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue