Use NUM_BAG_SLOTS constant

This commit is contained in:
Andrew Tomaka 2011-06-30 17:21:33 -04:00
parent d30d5baafe
commit 45c926720b

View file

@ -14,7 +14,7 @@ function core:StackGems(_,message)
local gem = message:match("%[(.-)%]"); local gem = message:match("%[(.-)%]");
local sourceContainer,sourceSlot,destContainer,destSlot = -1,-1,-1,-1; 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 for slot = 1,GetContainerNumSlots(bag) do
local itemId = GetContainerItemID(bag,slot) local itemId = GetContainerItemID(bag,slot)
if(itemId) then if(itemId) then