v0.2.3e: fixed a bug where pushing a shopkeeper would cause a crash

This commit is contained in:
Evan Debenham 2015-01-17 04:00:05 -05:00
parent 2119f0d1b9
commit e4e12f74dd

View File

@ -72,8 +72,9 @@ public class Pushing extends Actor {
acc.set( -speed.x / DELAY, -speed.y / DELAY );
delay = 0;
sprite.parent.add( this );
if (sprite.parent != null)
sprite.parent.add( this );
}
@Override