Fix a Coverity warning, which looks like a (minor) bug in ccontainer2d.cpp.
This commit is contained in:
parent
8f3fc7b858
commit
bbedad3456
|
@ -338,9 +338,9 @@ void CBVHCONTAINER2D::recursiveBuild_MIDDLE_SPLIT( BVH_CONTAINER_NODE_2D *aNodeP
|
|||
// Divide the objects
|
||||
switch( axis_to_split )
|
||||
{
|
||||
case 0: aNodeParent->m_LeafList.sort( sortByCentroid_X );
|
||||
case 1: aNodeParent->m_LeafList.sort( sortByCentroid_Y );
|
||||
case 2: aNodeParent->m_LeafList.sort( sortByCentroid_Z );
|
||||
case 0: aNodeParent->m_LeafList.sort( sortByCentroid_X ); break;
|
||||
case 1: aNodeParent->m_LeafList.sort( sortByCentroid_Y ); break;
|
||||
case 2: aNodeParent->m_LeafList.sort( sortByCentroid_Z ); break;
|
||||
}
|
||||
|
||||
unsigned int i = 0;
|
||||
|
|
Loading…
Reference in New Issue