From: ehofman Date: Mon, 27 Jun 2005 17:48:13 +0000 (+0000) Subject: fix return value X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=901592a88ee0fa6d32891f116e8211be0894e0ba;p=simgear.git fix return value --- diff --git a/simgear/props/props.cxx b/simgear/props/props.cxx index 7c004b5a..2e14a643 100644 --- a/simgear/props/props.cxx +++ b/simgear/props/props.cxx @@ -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);