fix 64-bit issue, can't cast void* to int.
This commit is contained in:
@@ -188,6 +188,7 @@ struct btDbvtNode
|
|||||||
union {
|
union {
|
||||||
btDbvtNode* childs[2];
|
btDbvtNode* childs[2];
|
||||||
void* data;
|
void* data;
|
||||||
|
int dataAsInt;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ public:
|
|||||||
}
|
}
|
||||||
void Process(const btDbvtNode* leaf)
|
void Process(const btDbvtNode* leaf)
|
||||||
{
|
{
|
||||||
int index = int(leaf->data);
|
int index = leaf->dataAsInt;
|
||||||
|
|
||||||
btCompoundShape* compoundShape = static_cast<btCompoundShape*>(m_compoundColObj->getCollisionShape());
|
btCompoundShape* compoundShape = static_cast<btCompoundShape*>(m_compoundColObj->getCollisionShape());
|
||||||
btCollisionShape* childShape = compoundShape->getChildShape(index);
|
btCollisionShape* childShape = compoundShape->getChildShape(index);
|
||||||
|
|||||||
Reference in New Issue
Block a user