1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-18 16:32:32 +02:00

Fix Vehicle Collision objects not being destroyed

This commit is contained in:
Daniel Evans 2014-12-17 19:31:01 +00:00
parent f3adc5ea5a
commit ff04daf633

View File

@ -10,7 +10,7 @@ CollisionInstance::~CollisionInstance()
GameObject* object = static_cast<GameObject*>(body->getUserPointer());
// Remove body from existance.
object->engine->dynamicsWorld->removeRigidBody(body);
object->engine->dynamicsWorld->removeCollisionObject(body);
delete body;