diff --git a/clientmods/autofly/init.lua b/clientmods/autofly/init.lua index 170194d24..1f5da5bc6 100644 --- a/clientmods/autofly/init.lua +++ b/clientmods/autofly/init.lua @@ -269,6 +269,8 @@ function autofly.autotp(tpname) local tpos=nil if tpname == nil then tpos = autofly.get_waypoint('AUTOTP') + elseif type(tpname) == "table" then + tpos = tpname else tpos=autofly.get_waypoint(tpname) end