From 11d2c108b31aee3e2e943cb8968d1dc1b5d90052 Mon Sep 17 00:00:00 2001 From: mctoadie Date: Tue, 7 Aug 2007 21:02:52 +0000 Subject: [PATCH] TomTom: * Catch nil descriptions --- TomTom.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TomTom.lua b/TomTom.lua index 5cbeb46..bd1b76d 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -654,6 +654,8 @@ end function TomTom:AddZWaypoint(c,z,x,y,desc,silent) if not self.m_points then self.m_points = {} end if not self.w_points then self.w_points = {} end + + if desc == '' then desc = nil end local m_icon = self:CreateMinimapIcon(desc, x, y) local w_icon = self:CreateWorldMapIcon(desc, x, y) -- 1.7.9.5