mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 20:20:01 +00:00
loot: abort when dropdownFrame cannot be accessed
fixes: attempt to index local 'dropdownFrame' (a nil value)
This commit is contained in:
+2
-1
@@ -51,7 +51,7 @@ pfUI:RegisterModule("loot", function ()
|
||||
end
|
||||
k = k<15 and k+1 or 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
pfUI.loot:RegisterEvent("CHAT_MSG_SYSTEM")
|
||||
pfUI.loot.randomRolling = true
|
||||
@@ -389,6 +389,7 @@ pfUI:RegisterModule("loot", function ()
|
||||
pfUI.loot:AddMasterLootMenus()
|
||||
hooksecurefunc("UnitPopup_OnClick",function()
|
||||
local dropdownFrame = getglobal(UIDROPDOWNMENU_INIT_MENU)
|
||||
if not dropdownFrame then return end
|
||||
local button = this.value
|
||||
local unit = dropdownFrame.unit
|
||||
local name = dropdownFrame.name
|
||||
|
||||
Reference in New Issue
Block a user