diff --git a/libs/openengine/bullet/physic.cpp b/libs/openengine/bullet/physic.cpp index 22312e3bc..17d4aeab5 100644 --- a/libs/openengine/bullet/physic.cpp +++ b/libs/openengine/bullet/physic.cpp @@ -480,7 +480,7 @@ namespace Physic #endif bool needDelete = false; - if (btBvhTriangleMeshShape* triangleShape = dynamic_cast(shape->mCollisionShape)) + if (btBvhTriangleMeshShape* triangleShape = dynamic_cast(collisionShape)) { btScaledBvhTriangleMeshShape* scaled = new btScaledBvhTriangleMeshShape(triangleShape, btVector3(scale,scale,scale)); collisionShape = scaled;