diff --git a/src/PABLO/ParaTree.cpp b/src/PABLO/ParaTree.cpp index 084bad744e..6906649e37 100644 --- a/src/PABLO/ParaTree.cpp +++ b/src/PABLO/ParaTree.cpp @@ -4817,7 +4817,7 @@ namespace bitpit { i = istart; rest = m_octree.m_octants[i].getLogicalX()%Dh + m_octree.m_octants[i].getLogicalY()%Dh; while(rest!=0){ - if (i==nocts){ + if (i==nocts-1){ i = istart + nocts; break; }