mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-15 06:00:12 +00:00
Add safety check
This commit is contained in:
parent
7b06293a97
commit
64ebe27477
@ -80,6 +80,7 @@ static DBVT_INLINE void deletenode(btDbvt* pdbvt,
|
||||
static void recursedeletenode(btDbvt* pdbvt,
|
||||
btDbvtNode* node)
|
||||
{
|
||||
if (node == 0) return;
|
||||
if (!node->isleaf())
|
||||
{
|
||||
recursedeletenode(pdbvt, node->childs[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user