Fallout fixes

This commit is contained in:
Applevangelist
2022-05-06 11:44:59 +02:00
parent 8ac2241372
commit 10efb98eb3
6 changed files with 9 additions and 10 deletions

View File

@@ -1170,7 +1170,7 @@ function GROUP:GetFuelAvg()
local TotalFuel = 0
for UnitID, UnitData in pairs( self:GetUnits() ) do
local Unit = UnitData -- Wrapper.Unit#UNIT
local UnitFuel = Unit:GetFuel()
local UnitFuel = Unit:GetFuel() or 0
self:F( { Fuel = UnitFuel } )
TotalFuel = TotalFuel + UnitFuel
end