loot: only use existing functions

This commit is contained in:
shagu
2018-11-03 10:52:25 +01:00
parent 27f9fcec36
commit 065a050a61
+5 -2
View File
@@ -470,8 +470,11 @@ pfUI:RegisterModule("loot", function ()
maxrarity = math.max(maxrarity, quality)
maxwidth = math.max(maxwidth, slot.name:GetStringWidth())
slot:SetID(id)
slot:SetSlot(id)
if slot.SetSlot then
slot:SetSlot(id)
else
slot:SetID(id)
end
slot:Enable()
slot:Show()