v0.2.3e: fixed a bug where pushing a shopkeeper would cause a crash
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user