Fix flashtarget crash

This commit is contained in:
Paul Chote
2010-09-03 16:37:02 +12:00
parent 6ac4266847
commit 5a78df0318

View File

@@ -34,6 +34,9 @@ namespace OpenRA.Effects
public IEnumerable<Renderable> Render()
{
if (!target.IsInWorld)
yield break;
if (remainingTicks % 2 == 0)
foreach (var r in target.Render())
yield return r.WithPalette("highlight");