From ff04daf633b31148c69bdccefccb7039090bef7e Mon Sep 17 00:00:00 2001 From: Daniel Evans Date: Wed, 17 Dec 2014 19:31:01 +0000 Subject: [PATCH] Fix Vehicle Collision objects not being destroyed --- rwengine/src/data/CollisionInstance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rwengine/src/data/CollisionInstance.cpp b/rwengine/src/data/CollisionInstance.cpp index 457e450a..9b17c37e 100644 --- a/rwengine/src/data/CollisionInstance.cpp +++ b/rwengine/src/data/CollisionInstance.cpp @@ -10,7 +10,7 @@ CollisionInstance::~CollisionInstance() GameObject* object = static_cast(body->getUserPointer()); // Remove body from existance. - object->engine->dynamicsWorld->removeRigidBody(body); + object->engine->dynamicsWorld->removeCollisionObject(body); delete body;