Use NUM_BAG_SLOTS constant
This commit is contained in:
parent
d30d5baafe
commit
45c926720b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue