diff --git a/Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp b/Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp index 1ec28cf41..e3bc82db1 100644 --- a/Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp +++ b/Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp @@ -285,6 +285,7 @@ btTypedConstraint* btBulletWorldImporter::createUniversalD6Constraint(class bt btRigidBody* btBulletWorldImporter::createRigidBody(bool isDynamic, btScalar mass, const btTransform& startTransform,btCollisionShape* shape) { btVector3 localInertia; + localInertia.setZero(0); if (mass) shape->calculateLocalInertia(mass,localInertia); @@ -345,4 +346,5 @@ btConvexHullShape* btBulletWorldImporter::createConvexHullShape() btCompoundShape* btBulletWorldImporter::createCompoundShape() { return 0; -} \ No newline at end of file +} +