From 340cf0b8b7aba646e4dccc11be3941f223a36c98 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Tue, 22 Dec 2009 07:38:24 +1300 Subject: [PATCH] fixes PlayRepeating when people do ReplaceAnim too. --- OpenRa.Game/Graphics/Animation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRa.Game/Graphics/Animation.cs b/OpenRa.Game/Graphics/Animation.cs index 6620a80674..4bde122441 100644 --- a/OpenRa.Game/Graphics/Animation.cs +++ b/OpenRa.Game/Graphics/Animation.cs @@ -40,7 +40,7 @@ namespace OpenRa.Game.Graphics public void PlayRepeating( string sequenceName ) { - PlayThen( sequenceName, () => PlayRepeating( sequenceName ) ); + PlayThen( sequenceName, () => PlayRepeating( CurrentSequence.Name ) ); } public void ReplaceAnim(string sequenceName)