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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user