From 502fd41ca8b9e7985f542da00d6b146df4f4f68f Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Sat, 22 Oct 2011 02:58:39 +0000 Subject: [PATCH] - change finalize method of VehicleWheel git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8493 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/bullet/native/com_jme3_bullet_objects_VehicleWheel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/bullet/native/com_jme3_bullet_objects_VehicleWheel.cpp b/engine/src/bullet/native/com_jme3_bullet_objects_VehicleWheel.cpp index 3403390c6..367e31c0d 100644 --- a/engine/src/bullet/native/com_jme3_bullet_objects_VehicleWheel.cpp +++ b/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 }