fix a crash in RepairIndicator with a dead building
This commit is contained in:
@@ -29,7 +29,7 @@ namespace OpenRA.Mods.RA.Effects
|
|||||||
|
|
||||||
public void Tick( World world )
|
public void Tick( World world )
|
||||||
{
|
{
|
||||||
if (--framesLeft == 0 || a.IsDead())
|
if (--framesLeft == 0 || !a.IsInWorld || a.IsDead())
|
||||||
world.AddFrameEndTask(w => w.Remove(this));
|
world.AddFrameEndTask(w => w.Remove(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user