loot: abort on events for empty loot slots

This commit is contained in:
shagu
2020-12-16 16:54:58 +01:00
parent 70a29a7948
commit 3d137960fe
+3 -2
View File
@@ -670,8 +670,9 @@ pfUI:RegisterModule("loot", "vanilla:tbc", function ()
pfUI.loot:UpdateLootFrame()
end
if event == "LOOT_SLOT_CLEARED" then
if(not this:IsShown()) then return end
if event == "LOOT_SLOT_CLEARED" and arg1 then
if not this:IsShown() then return end
if not pfUI.loot.slots[arg1] then return end
pfUI.loot.slots[arg1]:Hide()
end