mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 11:22:45 +01:00
Fix Vehicle Collision objects not being destroyed
This commit is contained in:
parent
f3adc5ea5a
commit
ff04daf633
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user