Prevent infinite loop between FlyAttack and ReturnToBase.

This commit is contained in:
tovl
2019-05-26 19:01:48 +02:00
committed by reaperrr
parent 5920de1384
commit 71a035315c

View File

@@ -126,7 +126,7 @@ namespace OpenRA.Mods.Common.Activities
}
// Prevent an infinite loop in case we'd return to the activity that called ReturnToBase in the first place. Go idle instead.
Cancel(self);
self.CancelActivity();
return NextActivity;
}