From 9c427c6acbed5a4f463c621b78ffdbbc3f7fa2ca Mon Sep 17 00:00:00 2001 From: Toontown Super <108632596+ToontownSuperForeverMVP@users.noreply.github.com> Date: Sat, 20 Dec 2025 10:48:07 -0500 Subject: [PATCH] Fix IndexError in InventoryPage restock all logic by using inventory.getMax() instead of ToontownBattleGlobals.MaxProps --- toontown/shtiker/InventoryPage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toontown/shtiker/InventoryPage.py b/toontown/shtiker/InventoryPage.py index 61ab656..ca814c6 100644 --- a/toontown/shtiker/InventoryPage.py +++ b/toontown/shtiker/InventoryPage.py @@ -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: