hack around crash on boat repair

This commit is contained in:
Chris Forbes
2010-06-18 20:55:06 +12:00
parent 0c25924789
commit 0ef91ecc2d

View File

@@ -59,8 +59,9 @@ namespace OpenRA.Traits
public void PlayCustomAnim(Actor self, string name) public void PlayCustomAnim(Actor self, string name)
{ {
anim.PlayThen(GetPrefix(self) + name, if (anim.HasSequence(name))
() => anim.PlayRepeating(GetPrefix(self) + "idle")); anim.PlayThen(GetPrefix(self) + name,
() => anim.PlayRepeating(GetPrefix(self) + "idle"));
} }
public void PlayCustomAnimThen(Actor self, string name, Action a) public void PlayCustomAnimThen(Actor self, string name, Action a)