Make sure we have a sprite manager before talking to it.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@882 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-01-19 07:01:19 +00:00
parent df0ec942bd
commit 408b3b6cb4
@@ -1,5 +1,5 @@
//
// $Id: AnimationManager.java,v 1.3 2002/01/19 07:00:40 mdb Exp $
// $Id: AnimationManager.java,v 1.4 2002/01/19 07:01:19 mdb Exp $
package com.threerings.media.animation;
@@ -217,7 +217,9 @@ public class AnimationManager
long now = System.currentTimeMillis();
// call tick on all sprites
_spritemgr.tick(now, _dirty);
if (_spritemgr != null) {
_spritemgr.tick(now, _dirty);
}
// call tick on all animations
tickAnimations(now);