From 8815f5d56033d5444985c4ff8d74c01f5469c078 Mon Sep 17 00:00:00 2001 From: James Whitehead Ii Date: Fri, 30 Mar 2007 22:19:39 +0000 Subject: [PATCH] * Fix another instance issue --- TomTom.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TomTom.lua b/TomTom.lua index 2ff905b..bb3a0c0 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -399,6 +399,10 @@ function TomTom:AddWaypoint(x,y,desc) SetMapZoom(oc,oz) end + if not c or not z then + return + end + local m_icon = self:CreateMinimapIcon(desc, x, y) local w_icon = self:CreateWorldMapIcon(desc, x, y) --local c,z = Astrolabe:GetCurrentPlayerPosition() -- 1.7.9.5