Update ArmyGroup.lua

- Fixed speed nil in ofafterUpdateRoute
This commit is contained in:
Frank 2021-12-17 15:57:28 +01:00
parent f4cd28cdb9
commit 854a1e5723

View File

@ -908,7 +908,7 @@ end
function ARMYGROUP:onafterUpdateRoute(From, Event, To, n, N, Speed, Formation)
-- Debug info.
local text=string.format("Update route state=%s: n=%s, N=%s, Speed=%d, Formation=%s", self:GetState(), tostring(n), tostring(N), tonumber(Speed), tostring(Formation))
local text=string.format("Update route state=%s: n=%s, N=%s, Speed=%s, Formation=%s", self:GetState(), tostring(n), tostring(N), tostring(Speed), tostring(Formation))
self:T(self.lid..text)
-- Update route from this waypoint number onwards.