Fixed goal problem in TASK_CARGO_TRANSPORT more or less, needs further investigation

This commit is contained in:
FlightControl
2017-07-02 12:44:27 +02:00
parent f221047eba
commit af230d9874
4 changed files with 44 additions and 8 deletions

View File

@@ -2395,5 +2395,16 @@ function CONTROLLABLE:IsAirPlane()
return nil
end
function CONTROLLABLE:GetSize()
local DCSObject = self:GetDCSObject()
if DCSObject then
return 1
else
return 0
end
end
-- Message APIs

View File

@@ -353,8 +353,13 @@ function GROUP:GetSize()
if DCSGroup then
local GroupSize = DCSGroup:getSize()
self:T3( GroupSize )
return GroupSize
if GroupSize then
self:T3( GroupSize )
return GroupSize
else
return 0
end
end
return nil