From 998982b16a98ac4a92227936d5e02f37500ead54 Mon Sep 17 00:00:00 2001 From: cc9cii Date: Sat, 1 Nov 2014 21:04:53 +1100 Subject: [PATCH] Keep physics engines until physics code is moved out of OEngine. --- apps/opencs/view/world/physicssystem.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/opencs/view/world/physicssystem.cpp b/apps/opencs/view/world/physicssystem.cpp index 5776c32e93..f4f4617718 100644 --- a/apps/opencs/view/world/physicssystem.cpp +++ b/apps/opencs/view/world/physicssystem.cpp @@ -22,7 +22,10 @@ namespace CSVWorld PhysicsSystem::~PhysicsSystem() { - delete mEngine; + // FIXME: OEngine does not behave well when multiple instances are created + // and deleted, sometimes resulting in crashes. Skip the deletion until the physics + // code is moved out of OEngine. + //delete mEngine; } // looks up the scene manager based on the scene node name (inefficient)