From e7ed4981267f5509b217cc9a66a6f0eccf7fb7ba Mon Sep 17 00:00:00 2001 From: Ludovicus Date: Wed, 2 Dec 2020 13:54:47 -0500 Subject: [PATCH] Make RemoveWaypoint return on nil, because race conditions. --- TomTom.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/TomTom.lua b/TomTom.lua index 153bfa8..278385b 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -811,6 +811,7 @@ end local function noop() end function TomTom:RemoveWaypoint(uid) + if not uid then return end if type(uid) ~= "table" then error("TomTom:RemoveWaypoint(uid) UID is not a table."); end local data = uid self:ClearWaypoint(uid) -- 1.7.9.5