fix an issue with calculating the max depth of btDbvt

(shouldn't impact the btDbvtBroadphase or other code, feature seems to be unused)
This commit is contained in:
erwin.coumans
2010-03-31 20:11:56 +00:00
parent b409abac09
commit 7aa183f42f

View File

@@ -61,7 +61,7 @@ static void getmaxdepth(const btDbvtNode* node,int depth,int& maxdepth)
if(node->isinternal())
{
getmaxdepth(node->childs[0],depth+1,maxdepth);
getmaxdepth(node->childs[0],depth+1,maxdepth);
getmaxdepth(node->childs[1],depth+1,maxdepth);
} else maxdepth=btMax(maxdepth,depth);
}