don't try to return to base if already dead, fixes #2503

This commit is contained in:
Matthias Mailänder
2013-04-20 14:45:28 +02:00
parent d735242cd0
commit 6f681dfe37

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)