Browse Source

- change finalize method of VehicleWheel

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8493 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 14 years ago
parent
commit
502fd41ca8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      engine/src/bullet/native/com_jme3_bullet_objects_VehicleWheel.cpp

+ 2 - 1
engine/src/bullet/native/com_jme3_bullet_objects_VehicleWheel.cpp

@@ -150,7 +150,8 @@ extern "C" {
             env->ThrowNew(newExc, "The native object does not exist.");
             return;
         }
-        delete(&vehicle->getWheelInfo(wheelIndex));
+        btWheelInfo  m_wheelInfo[wheelIndex];
+        delete(&m_wheelInfo);
     }
 #ifdef __cplusplus
 }