From f2a2f5dbbd8f4742651e1cbfec9e64b5efc71e69 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 27 Feb 2019 18:22:47 +0100 Subject: [PATCH] loot: fix nil error in dropdownmenu Thanks @Artur91425 --- modules/loot.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/loot.lua b/modules/loot.lua index d5c795a4..25142411 100644 --- a/modules/loot.lua +++ b/modules/loot.lua @@ -39,7 +39,7 @@ pfUI:RegisterModule("loot", function () if to >= 1 then local _,_,_,quality = GetLootSlotInfo(slot) if quality >= tonumber(C.loot.rollannouncequal) then - SendChatMessageWide(T["Random Rolling "]..GetLootSlotLink(slot)) + SendChatMessageWide(T["Random Rolling"].." "..GetLootSlotLink(slot)) if C.loot.rollannounce == "1" then local k,names = 1, "" for i=1,to do @@ -651,6 +651,7 @@ pfUI:RegisterModule("loot", function () if event == "LOOT_CLOSED" then StaticPopup_Hide("LOOT_BIND") HideUIPanel(this) + if DropDownList1:IsShown() then CloseDropDownMenus() end for _, v in pairs(this.slots) do v:Hide() end