Quantcast

* Only try to set the corpse waypoint when c,z,x,y are positive numbers

James Whitehead II [12-22-08 - 08:21]
* Only try to set the corpse waypoint when c,z,x,y are positive numbers
Filename
TomTom_Corpse.lua
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