Skip to content

Commit

Permalink
fix crash in CrateEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisforbes committed Oct 9, 2010
1 parent 580f1cf commit e3d71ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions OpenRA.Mods.RA/Effects/CrateEffect.cs
Expand Up @@ -41,8 +41,9 @@ public void Tick( World world )

public IEnumerable<Renderable> Render()
{
yield return new Renderable(anim.Image,
a.CenterLocation - .5f * anim.Image.size + offset, "effect", (int)a.CenterLocation.Y);
if (a.IsInWorld)
yield return new Renderable(anim.Image,
a.CenterLocation - .5f * anim.Image.size + offset, "effect", (int)a.CenterLocation.Y);
}
}
}

0 comments on commit e3d71ac

Please sign in to comment.