diff --git a/MyAddon.lua b/MyAddon.lua index 7d822a5..1b389fb 100755 --- a/MyAddon.lua +++ b/MyAddon.lua @@ -59,7 +59,7 @@ function GetUnitFromGuid(guid) end function events:INSPECT_READY(guid) - if not inspectInitialized then + if not inspectInitialized and InspectFrame then InspectFontStrings["itemLevel"] = InspectFrame:CreateFontString(nil, "OVERLAY") InspectFontStrings["itemLevel"]:SetPoint("BOTTOMRIGHT", -5, 5) InspectFontStrings["itemLevel"]:SetFont("Fonts\\FRIZQT__.ttf", 24, "OUTLINE")