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)
|
if (info.ContrailLength > 0)
|
||||||
yield return contrail;
|
yield return contrail;
|
||||||
|
|
||||||
|
if (anim == null)
|
||||||
|
yield break;
|
||||||
|
|
||||||
var world = args.SourceActor.World;
|
var world = args.SourceActor.World;
|
||||||
if (!world.FogObscures(pos))
|
if (!world.FogObscures(pos))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user