From 0b850a2cb5280114fd003b3b8f6d6c899e9fb11b Mon Sep 17 00:00:00 2001 From: scrawl Date: Fri, 15 Jun 2012 09:15:37 +0200 Subject: [PATCH] fix crash introduced by last commit --- libs/openengine/bullet/physic.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/openengine/bullet/physic.cpp b/libs/openengine/bullet/physic.cpp index 354b4d589..f7caa54b4 100644 --- a/libs/openengine/bullet/physic.cpp +++ b/libs/openengine/bullet/physic.cpp @@ -328,6 +328,8 @@ namespace Physic dynamicsWorld->removeRigidBody(hf.mBody); delete hf.mShape; delete hf.mBody; + + mHeightFieldMap.erase(name); } RigidBody* PhysicEngine::createRigidBody(std::string mesh,std::string name,float scale)