diff --git a/OpenRA.Mods.Common/Traits/Render/WithSpriteBody.cs b/OpenRA.Mods.Common/Traits/Render/WithSpriteBody.cs index a60b92d8eb..c5a1608cc6 100644 --- a/OpenRA.Mods.Common/Traits/Render/WithSpriteBody.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithSpriteBody.cs @@ -70,7 +70,7 @@ namespace OpenRA.Mods.Common.Traits.Render if (info.StartSequence != null) PlayCustomAnimation(init.Self, info.StartSequence, - () => PlayCustomAnimationRepeating(init.Self, info.Sequence)); + () => DefaultAnimation.PlayRepeating(NormalizeSequence(init.Self, info.Sequence))); else DefaultAnimation.PlayRepeating(NormalizeSequence(init.Self, info.Sequence)); } @@ -103,8 +103,7 @@ namespace OpenRA.Mods.Common.Traits.Render public void PlayCustomAnimationRepeating(Actor self, string name) { - var sequence = NormalizeSequence(self, name); - DefaultAnimation.PlayThen(sequence, () => PlayCustomAnimationRepeating(self, sequence)); + DefaultAnimation.PlayRepeating(NormalizeSequence(self, name)); } public void PlayCustomAnimationBackwards(Actor self, string name, Action after = null)