From 42092fe6dd373e52c2f6678cdc68f9b2d8bb1de4 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 14 Oct 2010 14:40:46 +1300 Subject: [PATCH] fix #291 --- OpenRA.Mods.RA/Effects/RepairIndicator.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.RA/Effects/RepairIndicator.cs b/OpenRA.Mods.RA/Effects/RepairIndicator.cs index 4869724582..d5eb66ba8d 100755 --- a/OpenRA.Mods.RA/Effects/RepairIndicator.cs +++ b/OpenRA.Mods.RA/Effects/RepairIndicator.cs @@ -35,8 +35,9 @@ namespace OpenRA.Mods.RA.Effects public IEnumerable Render() { - yield return new Renderable(anim.Image, - a.CenterLocation - .5f * anim.Image.size, "chrome", (int)a.CenterLocation.Y); + if (a.IsInWorld) + yield return new Renderable(anim.Image, + a.CenterLocation - .5f * anim.Image.size, "chrome", (int)a.CenterLocation.Y); } } }