From 2de308911a81523d516413893023773c290f3352 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 6 Jul 2019 11:33:23 +0200 Subject: [PATCH] skin: check name before using it --- skins/blizzard/options-interface.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skins/blizzard/options-interface.lua b/skins/blizzard/options-interface.lua index 044cc91d..ae7ebfc6 100644 --- a/skins/blizzard/options-interface.lua +++ b/skins/blizzard/options-interface.lua @@ -47,7 +47,8 @@ pfUI:RegisterSkin("Options - Interface", "tbc", function () elseif obj_type == "Slider" then SkinSlider(obj) elseif obj_type == "Frame" then - if _G[obj:GetName().."Button"] then + local name = obj.GetName and obj:GetName() + if name and _G[name.."Button"] then SkinDropDown(obj) else SkinAllObjects(obj)