fix 64-bit issue, can't cast void* to int.

This commit is contained in:
erwin.coumans
2008-09-16 06:17:33 +00:00
parent 2e4f634586
commit c9e5f2df05
2 changed files with 2 additions and 1 deletions

View File

@@ -141,7 +141,7 @@ public:
}
void Process(const btDbvtNode* leaf)
{
int index = int(leaf->data);
int index = leaf->dataAsInt;
btCompoundShape* compoundShape = static_cast<btCompoundShape*>(m_compoundColObj->getCollisionShape());
btCollisionShape* childShape = compoundShape->getChildShape(index);