- fix NPE in BulletAppState

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10346 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2013-02-05 19:47:57 +00:00
parent 2f100c79fb
commit eb1964a180

View File

@ -171,6 +171,7 @@ public class BulletAppState implements AppState, PhysicsTickListener {
if (!initialized) { if (!initialized) {
startPhysics(); startPhysics();
} }
this.app = app;
this.stateManager = stateManager; this.stateManager = stateManager;
initialized = true; initialized = true;
} }
@ -339,5 +340,6 @@ public class BulletAppState implements AppState, PhysicsTickListener {
* parallel, update order is kept.<br/> Multiple BulletAppStates will * parallel, update order is kept.<br/> Multiple BulletAppStates will
* execute in parallel in this mode. * execute in parallel in this mode.
*/ */
PARALLEL,} PARALLEL,
}
} }