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