Commit 864dad03 authored by PIACIBELLO Cyrille's avatar PIACIBELLO Cyrille Committed by BRAMAS Berenger
Browse files

minor fix in delete

parent 10185739
......@@ -137,6 +137,10 @@ 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){
......@@ -631,4 +635,3 @@ public:
#endif //FSUBOCTREE_HPP
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