loot: update numLootSlots of original loot frame

This commit is contained in:
shagu
2020-08-13 00:15:24 +02:00
parent c785589547
commit 97ba25776d
+4 -2
View File
@@ -442,7 +442,9 @@ pfUI:RegisterModule("loot", "vanilla:tbc", function ()
local maxrarity, maxwidth = 0, 0
local items = GetNumLootItems()
if(items > 0) then
LootFrame.numLootItems = items
if items > 0 then
local real = 0
for i=1, items do
local texture, item, quantity, quality, locked = GetLootSlotInfo(i)
@@ -450,7 +452,7 @@ pfUI:RegisterModule("loot", "vanilla:tbc", function ()
end
local slotid = 1
for id=0 ,GetNumLootItems() do
for id=0, items do
if GetLootSlotInfo(id) then
local slot = pfUI.loot.slots[slotid] or pfUI.loot:CreateSlot(slotid)
local texture, item, quantity, quality, locked = GetLootSlotInfo(id)