浏览代码

- fix NPE in BulletAppState

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10346 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 12 年之前
父节点
当前提交
eb1964a180
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      engine/src/bullet-common/com/jme3/bullet/BulletAppState.java

+ 3 - 1
engine/src/bullet-common/com/jme3/bullet/BulletAppState.java

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