From cd0b101fa863c1db8bbaf8785241690f1928f2fd Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Mon, 22 Dec 2008 08:21:03 +0000 Subject: [PATCH] * Only try to set the corpse waypoint when c,z,x,y are positive numbers --- TomTom_Corpse.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TomTom_Corpse.lua b/TomTom_Corpse.lua index 87d5743..33e49cd 100644 --- a/TomTom_Corpse.lua +++ b/TomTom_Corpse.lua @@ -53,7 +53,7 @@ local function GetCorpseLocation() end local function SetCorpseArrow() - if c and z and x and y then + if c and z and x and y and c > 0 and z > 0 and x > 0 and y > 0 then uid = TomTom:AddZWaypoint(c, z, x*100, y*100, L["My Corpse"], false, true, true, nil, true, true) return uid end -- 1.7.9.5