From 45c926720bcba37c106a4d6002a434c5c53b5d47 Mon Sep 17 00:00:00 2001 From: atomaka Date: Thu, 30 Jun 2011 17:21:33 -0400 Subject: [PATCH] Use NUM_BAG_SLOTS constant --- GemStacker.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GemStacker.lua b/GemStacker.lua index d18a4d6..f0738a7 100644 --- a/GemStacker.lua +++ b/GemStacker.lua @@ -14,7 +14,7 @@ function core:StackGems(_,message) local gem = message:match("%[(.-)%]"); local sourceContainer,sourceSlot,destContainer,destSlot = -1,-1,-1,-1; - for bag = 0,4 do + for bag = 0,NUM_BAG_SLOTS do for slot = 1,GetContainerNumSlots(bag) do local itemId = GetContainerItemID(bag,slot) if(itemId) then