Guard for an odd error when a waypoint's angle can't be determined
James Whitehead II [04-19-08 - 20:12]
Guard for an odd error when a waypoint's angle can't be determined
diff --git a/TomTom_Waypoints.lua b/TomTom_Waypoints.lua
index 2e777f1..2904f54 100644
--- a/TomTom_Waypoints.lua
+++ b/TomTom_Waypoints.lua
@@ -72,6 +72,7 @@ local rad_135 = math.rad(135)
local function rotateArrow(self)
local angle = Astrolabe:GetDirectionToIcon(self)
+ if not angle then return self:Hide() end
angle = angle + rad_135
if GetCVar("rotateMinimap") == "1" then