Fix issue with deployment

This commit is contained in:
FlightControl 2017-07-03 08:46:17 +02:00
parent 8825b26b36
commit 3cd787fb1e

View File

@ -922,6 +922,8 @@ do -- TASK_CARGO_TRANSPORT
local CargoInDeployZone = false
if Cargo:IsUnLoaded() then
-- Loop the DeployZones set for the TASK_CARGO_TRANSPORT.
for DeployZoneID, DeployZone in pairs( DeployZones ) do
@ -931,6 +933,7 @@ do -- TASK_CARGO_TRANSPORT
CargoInDeployZone = true
end
end
end
CargoDeployed = CargoDeployed or CargoInDeployZone