Made setActionSequence() more robust.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2731 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-07-28 04:06:38 +00:00
parent fbd52c2be3
commit 42b84f894f
@@ -1,5 +1,5 @@
//
// $Id: CharacterSprite.java,v 1.44 2003/03/25 20:53:16 mdb Exp $
// $Id: CharacterSprite.java,v 1.45 2003/07/28 04:06:38 mdb Exp $
package com.threerings.cast;
@@ -101,6 +101,13 @@ public class CharacterSprite extends ImageSprite
*/
public void setActionSequence (String action)
{
// sanity check
if (action == null) {
Log.warning("Refusing to set null action sequence " + this + ".");
Thread.dumpStack();
return;
}
// no need to noop
if (action.equals(_action)) {
return;