- fix in lifecycle of BulletAppState

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10347 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2013-02-05 19:55:51 +00:00
parent eb1964a180
commit 841850def2

View File

@ -173,7 +173,6 @@ public class BulletAppState implements AppState, PhysicsTickListener {
} }
this.app = app; this.app = app;
this.stateManager = stateManager; this.stateManager = stateManager;
initialized = true;
} }
public boolean isInitialized() { public boolean isInitialized() {
@ -273,6 +272,7 @@ public class BulletAppState implements AppState, PhysicsTickListener {
executor.shutdown(); executor.shutdown();
executor = null; executor = null;
} }
initialized = false;
pSpace.removeTickListener(this); pSpace.removeTickListener(this);
pSpace.destroy(); pSpace.destroy();
} }