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

@@ -357,7 +357,11 @@ function CARGO:IsInZone( Zone )
if self:IsLoaded() then
return Zone:IsPointVec2InZone( self.CargoCarrier:GetPointVec2() )
else
return Zone:IsPointVec2InZone( self.CargoObject:GetPointVec2() )
if self.CargoObject:GetSize() ~= 0 then
return Zone:IsPointVec2InZone( self.CargoObject:GetPointVec2() )
else
return false
end
end
return nil