Merge pull request #10740 from reaperrr/fix-missile-nre

Fix Missile projectile crashing with NRE if it has no Image
This commit is contained in:
Oliver Brakmann
2016-02-13 21:25:50 +01:00

View File

@@ -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))
{