From 237821036c50261d17f9cab77d4c03697276548a Mon Sep 17 00:00:00 2001 From: Ludovicus Date: Sat, 4 Aug 2018 13:31:52 -0400 Subject: [PATCH] sigprof issue #357: Death in the Ritual of Doom. --- TomTom_Corpse.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/TomTom_Corpse.lua b/TomTom_Corpse.lua index b06accd..57050a7 100755 --- a/TomTom_Corpse.lua +++ b/TomTom_Corpse.lua @@ -103,7 +103,12 @@ eventFrame:SetScript("OnEvent", function(self, event, arg1, ...) elseif event == "PLAYER_DEAD" then m = C_Map.GetBestMapForUnit("player") if not IsInInstance() then - x,y = C_Map.GetPlayerMapPosition(m, "player"):GetXY() + x = nil + y = nil + local player = C_Map.GetPlayerMapPosition(m, "player") + if player then + x,y = player:GetXY() + end end StartCorpseSearch() elseif event == "PLAYER_UNGHOST" then -- 1.7.9.5