From 0eb13e1ed8c47be8a9dc64e80b8fb2d2d0a76b56 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Sat, 19 Apr 2008 20:12:37 +0000 Subject: [PATCH] Guard for an odd error when a waypoint's angle can't be determined --- TomTom_Waypoints.lua | 1 + 1 file changed, 1 insertion(+) 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 -- 1.7.9.5