Fix for speed nil

This commit is contained in:
Applevangelist 2024-03-13 07:38:56 +01:00
parent efd48c87e9
commit ada8629c01
3 changed files with 3 additions and 3 deletions

View File

@ -2069,7 +2069,7 @@ function ARMYGROUP:_InitGroup(Template)
self.speedMax=self.group:GetSpeedMax()
-- Is group mobile?
if self.speedMax>3.6 then
if self.speedMax and self.speedMax>3.6 then
self.isMobile=true
else
self.isMobile=false

View File

@ -3799,7 +3799,7 @@ function FLIGHTGROUP:_InitGroup(Template)
self.speedMax=group:GetSpeedMax()
-- Is group mobile?
if self.speedMax>3.6 then
if self.speedMax and self.speedMax>3.6 then
self.isMobile=true
else
self.isMobile=false

View File

@ -1800,7 +1800,7 @@ function NAVYGROUP:_InitGroup(Template)
self.speedMax=self.group:GetSpeedMax()
-- Is group mobile?
if self.speedMax>3.6 then
if self.speedMax and self.speedMax>3.6 then
self.isMobile=true
else
self.isMobile=false