Fix commands moved to C_Container

This commit is contained in:
Robin Hüskes 2022-10-25 16:18:19 +02:00
parent 25db282797
commit 03e88f78c7
1 changed files with 3 additions and 3 deletions

View File

@ -45,9 +45,9 @@ local function OnDataUpdate()
wipe(free)
wipe(full)
while(bagID<=NUM_BAG_SLOTS) do
local b = GetContainerNumSlots(bagID)
local c = GetContainerNumFreeSlots(bagID)
local bagType = GetItemFamily(GetBagName(bagID))
local b = C_Container.GetContainerNumSlots(bagID)
local c = C_Container.GetContainerNumFreeSlots(bagID)
local bagType = GetItemFamily(C_Container.GetBagName(bagID))
if(not bagType or bagType==0) then
bagType = 0
full[0] = full[0] or 0