Quantcast

TomTom:

mctoadie [08-07-07 - 21:02]
TomTom:
 * Catch nil descriptions
Filename
TomTom.lua
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)