Fix a Coverity warning, which looks like a (minor) bug in ccontainer2d.cpp.

This commit is contained in:
jean-pierre charras 2017-03-13 12:53:01 +01:00
parent 8f3fc7b858
commit bbedad3456
1 changed files with 3 additions and 3 deletions

View File

@ -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;