Don't draw combat debug for actors outside the world.

This commit is contained in:
Paul Chote
2014-03-18 17:42:48 +13:00
parent 4555157ed2
commit 4f7f0b7a55

View File

@@ -123,7 +123,7 @@ namespace OpenRA.Graphics
// added for contrails
foreach (var a in world.ActorsWithTrait<IPostRender>())
if (!a.Actor.Destroyed)
if (a.Actor.IsInWorld && !a.Actor.Destroyed)
a.Trait.RenderAfterWorld(this, a.Actor);
if (world.OrderGenerator != null)