We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c210dad + 5a3f34a commit 76cb6ecCopy full SHA for 76cb6ec
octomap/include/octomap/OcTreeBaseImpl.hxx
@@ -705,13 +705,13 @@ namespace octomap {
705
// TODO delete check depth, what happens to inner nodes with children?
706
this->deleteNodeChild(node, pos);
707
708
- if (!nodeHasChildren(node))
709
- if(node->children != NULL){
+ if (!nodeHasChildren(node)){
+ if (node->children != NULL){
710
delete[] node->children;
711
node->children = NULL;
712
}
713
return true;
714
- else{
+ } else {
715
node->updateOccupancyChildren(); // TODO: occupancy?
716
717
0 commit comments