Merge pull request #3124 from Mailaender/zombie-aircraft-fix

Don't try to return to base if already dead
This commit is contained in:
Chris Forbes
2013-04-20 16:55:04 -07:00

View File

@@ -93,7 +93,10 @@ namespace OpenRA.Mods.RA.Air
public override Activity Tick(Actor self)
{
if (IsCanceled) return NextActivity;
if (IsCanceled)
return NextActivity;
if (self.IsDead())
return NextActivity;
if (!isCalculated)
Calculate(self);
if (dest == null)