Fix AbortOnResupply not working

Going by yaml rules, all(!) aircraft in the shipping
mods should be aborting any previous activities
on resupply. None actually did, due to this bug.
This commit is contained in:
reaperrr
2019-06-09 05:00:27 +02:00
committed by Paul Chote
parent 9f59b007ab
commit db0c6d88bf

View File

@@ -142,7 +142,7 @@ namespace OpenRA.Mods.Common.Activities
resupplied = false; resupplied = false;
if (resupplied && abortOnResupply) if (resupplied && abortOnResupply)
Cancel(self); self.CancelActivity();
if (resupplied || IsCanceling || self.IsDead) if (resupplied || IsCanceling || self.IsDead)
return NextActivity; return NextActivity;