diff --git a/OpenRA.Game/Graphics/WorldRenderer.cs b/OpenRA.Game/Graphics/WorldRenderer.cs index fb33bd894f..9280b65dd8 100644 --- a/OpenRA.Game/Graphics/WorldRenderer.cs +++ b/OpenRA.Game/Graphics/WorldRenderer.cs @@ -94,10 +94,9 @@ namespace OpenRA.Graphics image.Sprite.DrawAt(image.Pos, this.GetPaletteIndex(image.Palette), image.Scale); // added for contrails - foreach (var a in world.Actors) - if (!a.Destroyed) - foreach (var t in a.TraitsImplementing()) - t.RenderAfterWorld(this, a); + foreach (var a in world.ActorsWithTrait()) + if (!a.Actor.Destroyed) + a.Trait.RenderAfterWorld(this, a.Actor); if (world.OrderGenerator != null) world.OrderGenerator.RenderAfterWorld(this, world);