]> git.mxchange.org Git - simgear.git/commitdiff
fix return value
authorehofman <ehofman>
Mon, 27 Jun 2005 17:48:13 +0000 (17:48 +0000)
committerehofman <ehofman>
Mon, 27 Jun 2005 17:48:13 +0000 (17:48 +0000)
simgear/props/props.cxx

index 7c004b5a69ea60e0d23035918cd577f4f045a936..2e14a643f90231accf59d3c4fd7737fe4a3e2424 100644 (file)
@@ -930,7 +930,9 @@ SGPropertyNode::removeChild (const char * name, int index, bool keep)
     if (node->nChildren() && node->removeChildren())
       dirty = true;
 
-    if (node->_count == 1 && !node->nChildren()) {
+    if (node->isTied() || node->_count != 1 || node->nChildren())
+      dirty = true;
+    else {
       if (keep)
         _removedChildren.push_back(node);