fix a crash in RepairIndicator with a dead building

This commit is contained in:
Chris Forbes
2010-09-22 20:48:45 +12:00
parent 1f047d439f
commit b6e56560d4

View File

@@ -29,7 +29,7 @@ namespace OpenRA.Mods.RA.Effects
public void Tick( World world )
{
if (--framesLeft == 0 || a.IsDead())
if (--framesLeft == 0 || !a.IsInWorld || a.IsDead())
world.AddFrameEndTask(w => w.Remove(this));
}