Fix WithIdleOverlayInfo Image override.

This commit is contained in:
Paul Chote
2020-08-14 12:06:17 +01:00
committed by abcdefg30
parent 94180f6a0a
commit 5d6961619d

View File

@@ -63,7 +63,7 @@ namespace OpenRA.Mods.Common.Traits.Render
facing = () => f;
}
var anim = new Animation(init.World, image, facing);
var anim = new Animation(init.World, Image ?? image, facing);
anim.IsDecoration = IsDecoration;
anim.PlayRepeating(RenderSprites.NormalizeSequence(anim, init.GetDamageState(), Sequence));