mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Add'l check in UNIT:GetLife()
This commit is contained in:
parent
20bfb8b08f
commit
57294aeaf5
@ -920,7 +920,7 @@ function UNIT:GetLife()
|
|||||||
|
|
||||||
local DCSUnit = self:GetDCSObject()
|
local DCSUnit = self:GetDCSObject()
|
||||||
|
|
||||||
if DCSUnit then
|
if DCSUnit and DCSUnit:isExist() then
|
||||||
local UnitLife = DCSUnit:getLife()
|
local UnitLife = DCSUnit:getLife()
|
||||||
return UnitLife
|
return UnitLife
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user