#SET - Error output for Addif the ObjectName variable is empty

#UNIT - Return zero is SpeedMax is nil
This commit is contained in:
Applevangelist
2025-02-19 17:32:25 +01:00
parent 749c5f87de
commit 43eeaede65
2 changed files with 9 additions and 2 deletions

View File

@@ -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