This can never be null.

This commit is contained in:
Matthias Mailänder
2021-08-12 10:09:17 +02:00
committed by abcdefg30
parent 2f1edd4516
commit 5220da1bae

View File

@@ -128,7 +128,7 @@ namespace OpenRA.Mods.Common.Traits.Render
var spawnFacing = Info.SpawnAtLastPosition ? cachedFacing : facing?.Facing ?? WAngle.Zero;
if ((Info.TerrainTypes.Count == 0 || Info.TerrainTypes.Contains(type)) && !string.IsNullOrEmpty(Info.Image))
if (Info.TerrainTypes.Count == 0 || Info.TerrainTypes.Contains(type))
self.World.AddFrameEndTask(w => w.Add(new SpriteEffect(pos, spawnFacing, self.World, Info.Image,
Info.Sequences.Random(Game.CosmeticRandom), Info.Palette, Info.VisibleThroughFog)));