Skip to content

Commit 76cb6ec

Browse files
committed
Merge branch 'fix-deleteNodeRecurs' of https://github.com/xinyiz/octomap into fix-deleteNodeRecurs
2 parents c210dad + 5a3f34a commit 76cb6ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

octomap/include/octomap/OcTreeBaseImpl.hxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -705,13 +705,13 @@ namespace octomap {
705705
// TODO delete check depth, what happens to inner nodes with children?
706706
this->deleteNodeChild(node, pos);
707707

708-
if (!nodeHasChildren(node))
709-
if(node->children != NULL){
708+
if (!nodeHasChildren(node)){
709+
if (node->children != NULL){
710710
delete[] node->children;
711711
node->children = NULL;
712712
}
713713
return true;
714-
else{
714+
} else {
715715
node->updateOccupancyChildren(); // TODO: occupancy?
716716
}
717717
}

0 commit comments

Comments
 (0)