From: Thomas Geymayer Date: Mon, 22 Oct 2012 15:59:19 +0000 (+0200) Subject: Let Nasal props.Node.removeChildren behaviour consistent (Don't keep deleted nodes) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=79f7907a82a90fc1809fca7afef61cbe61166f08;p=flightgear.git Let Nasal props.Node.removeChildren behaviour consistent (Don't keep deleted nodes) --- diff --git a/src/Scripting/nasal-props.cxx b/src/Scripting/nasal-props.cxx index 07aeed43a..1d445174e 100644 --- a/src/Scripting/nasal-props.cxx +++ b/src/Scripting/nasal-props.cxx @@ -434,7 +434,7 @@ static naRef f_removeChildren(naContext c, naRef me, int argc, naRef* args) if(naIsNil(argv) || naVec_size(argv) == 0) { // Remove all children for(int i = (*node)->nChildren() - 1; i >=0; i--) - naVec_append(result, propNodeGhostCreate(c, (*node)->removeChild(i))); + naVec_append(result, propNodeGhostCreate(c, (*node)->removeChild(i, false))); } else { // Remove all children of a specified name naRef name = naVec_get(argv, 0);