mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
#SET - Error output for Addif the ObjectName variable is empty
#UNIT - Return zero is SpeedMax is nil
This commit is contained in:
@@ -607,7 +607,7 @@ function UNIT:GetSpeedMax()
|
||||
local Desc = self:GetDesc()
|
||||
|
||||
if Desc then
|
||||
local SpeedMax = Desc.speedMax
|
||||
local SpeedMax = Desc.speedMax or 0
|
||||
return SpeedMax * 3.6
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user