Commit ed07425e authored by BRAMAS Berenger's avatar BRAMAS Berenger

Update suboctree to remove cells correctly

parent 864dad03
......@@ -137,11 +137,6 @@ protected:
if(arrayIndex == this->leftLeafIndex && arrayIndex == this->rightLeafIndex){
this->rightLeafIndex = -1;
// only one cells, return true
// remove the last cells
cellAllocator.deleteObject(this->cells[indexLevel][arrayIndex]);
this->cells[indexLevel][arrayIndex] =nullptr;
return true;
}
else if(arrayIndex == this->leftLeafIndex){
while( !this->cells[indexLevel][++this->leftLeafIndex] );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment