fix bag error

This commit is contained in:
Bunny67
2018-07-07 17:59:09 +03:00
parent 3a2342f59f
commit b46771ae2f
+4 -1
View File
@@ -453,8 +453,11 @@ function B:Layout(isBank)
f.Bags[bagID].numSlots = numSlots
local _, _, id = strfind(GetInventoryItemLink("player", ContainerIDToInventoryID(bagID)) or "", "item:(%d+)")
local link = GetInventoryItemLink("player", ContainerIDToInventoryID(bagID))
if link then
local _, _, id = strfind(link, "item:(%d+)")
f.Bags[bagID].type = select(6, GetItemInfo(id))
end
--Hide unused slots
for i = 1, MAX_CONTAINER_ITEMS do