Fix Carryalls attempting to deliver units that they aren't carrying.

This commit is contained in:
Paul Chote
2025-12-27 18:52:48 +00:00
committed by Gustas Kažukauskas
parent 827f4682a5
commit 17210c1088

View File

@@ -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)