From 7aa183f42f95423f13c15a722852c717811123b1 Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Wed, 31 Mar 2010 20:11:56 +0000 Subject: [PATCH] fix an issue with calculating the max depth of btDbvt (shouldn't impact the btDbvtBroadphase or other code, feature seems to be unused) --- src/BulletCollision/BroadphaseCollision/btDbvt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BulletCollision/BroadphaseCollision/btDbvt.cpp b/src/BulletCollision/BroadphaseCollision/btDbvt.cpp index ff32ec1d4..95443af50 100644 --- a/src/BulletCollision/BroadphaseCollision/btDbvt.cpp +++ b/src/BulletCollision/BroadphaseCollision/btDbvt.cpp @@ -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); }