Quantcast

Fix Saroana #374 issue with profile reference at load time.

Ludovicus [08-04-18 - 16:53]
Fix Saroana #374 issue with profile reference at load time.
Filename
TomTom_Corpse.lua
diff --git a/TomTom_Corpse.lua b/TomTom_Corpse.lua
index 1f33b91..b06accd 100755
--- a/TomTom_Corpse.lua
+++ b/TomTom_Corpse.lua
@@ -74,7 +74,7 @@ eventFrame:SetScript("OnUpdate", function(self, elapsed)
         return
     else
         counter = 0
-        if TomTom.profile.general.corpse_arrow then
+        if TomTom and TomTom.profile and TomTom.profile.general and TomTom.profile.general.corpse_arrow then
             if GetCorpseLocation() then
                 if SetCorpseArrow() then
                     self:Hide()