From 8cd03059f953fb73628553b625daf79067bfd76e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20H=C3=BCskes?= Date: Thu, 6 Oct 2022 12:29:55 +0200 Subject: [PATCH] Fix C_Container prefix use --- module_bags.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module_bags.lua b/module_bags.lua index 13cdf89..b99cf6d 100644 --- a/module_bags.lua +++ b/module_bags.lua @@ -13,16 +13,16 @@ function child:scanBag(bag) local slot = 1 local itemlist = {} local empty = true - while(slot<=GetContainerNumSlots(bag)) do + while(slot<=C_Container.GetContainerNumSlots(bag)) do local item = Item:CreateFromBagAndSlot(bag, slot) if(item) then - local _, itemCount = GetContainerItemInfo(bag, slot) + local itemInfo = C_Container.GetContainerItemInfo(bag, slot) local id = item:GetItemID() if(id) then empty = false itemlist[id] = itemlist[id] or {} itemlist[id]['count'] = itemlist[id]['count'] or 0 - itemlist[id]['count'] = itemlist[id]['count'] + itemCount + itemlist[id]['count'] = itemlist[id]['count'] + itemInfo['stackCount'] child:getName(id) end end