Fix Carryalls attempting to deliver units that they aren't carrying.
This commit is contained in:
committed by
Gustas Kažukauskas
parent
827f4682a5
commit
17210c1088
@@ -46,7 +46,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
// In case this activity was queued (either via queued order of via AutoCarryall)
|
||||
// something might have happened to the cargo in the time between the activity being
|
||||
// queued and being run, so short out if it is no longer valid.
|
||||
if (carryall.Carryable == null)
|
||||
if (carryall.Carryable == null || carryall.State != Carryall.CarryallState.Carrying)
|
||||
return;
|
||||
|
||||
if (assignTargetOnFirstRun)
|
||||
|
||||
Reference in New Issue
Block a user