From 8729f39154df46e6e88358c2ed83e9ba194f6c0a Mon Sep 17 00:00:00 2001 From: reaperrr Date: Sat, 13 Feb 2016 01:06:22 +0100 Subject: [PATCH] Fix Missile projectile crashing with NRE if it has no Image --- OpenRA.Mods.Common/Effects/Missile.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.Common/Effects/Missile.cs b/OpenRA.Mods.Common/Effects/Missile.cs index 729b9a2923..69035d872c 100644 --- a/OpenRA.Mods.Common/Effects/Missile.cs +++ b/OpenRA.Mods.Common/Effects/Missile.cs @@ -841,6 +841,9 @@ namespace OpenRA.Mods.Common.Effects if (info.ContrailLength > 0) yield return contrail; + if (anim == null) + yield break; + var world = args.SourceActor.World; if (!world.FogObscures(pos)) {