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 }