v0.2.4c: added null check to sprite linking

This commit is contained in:
Evan Debenham 2015-03-07 17:06:05 -05:00
parent 22d072f3e7
commit b8412b6765

View File

@ -99,8 +99,9 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
place( ch.pos );
turnTo( ch.pos, Random.Int( Level.LENGTH ) );
ch.updateSpriteState();
if (parent != null)
ch.updateSpriteState();
}
public PointF worldToCamera( int cell ) {