Applied some fixes from Bullet: issues with btDbvtBroadphase, and btSoftBody, and...
[blender-staging.git] / extern / bullet2 / src / BulletCollision / CollisionDispatch / btCompoundCollisionAlgorithm.cpp
index 5781281800759ca5bb658b090d00a8e55f2d29d8..535b61992b08438214243072d8b83fff5c7bf942 100644 (file)
@@ -141,7 +141,7 @@ public:
        }
        void            Process(const btDbvtNode* leaf)
        {
-               int index = int(long(leaf->data));
+               int index = leaf->dataAsInt;
 
                btCompoundShape* compoundShape = static_cast<btCompoundShape*>(m_compoundColObj->getCollisionShape());
                btCollisionShape* childShape = compoundShape->getChildShape(index);