From c019325f0ad731b6dcb293d69906375c48e05d5c Mon Sep 17 00:00:00 2001 From: Ludovicus Date: Mon, 11 Mar 2019 19:35:38 -0400 Subject: [PATCH] Protect against empty _icon properties in DebugListAllWaypoints(). Resolves #2. --- TomTom.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TomTom.lua b/TomTom.lua index da4f255..afabcf0 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -1039,7 +1039,7 @@ function TomTom:DebugListAllWaypoints() local ctxt = RoundCoords(wp[2], wp[3], 2) local desc = wp.title and wp.title or L["Unknown waypoint"] local indent = " " - self:Printf(L["%s%s - %s (map: %d) %s %s"], indent, desc, ctxt, wp[1], wp.minimap_icon, wp.worldmap_icon) + self:Printf(L["%s%s - %s %s %s"], indent, desc, ctxt, wp[1], (wp.minimap_icon or "*"), (wp.worldmap_icon or "*")) end end end -- 1.7.9.5