From 79f7907a82a90fc1809fca7afef61cbe61166f08 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Mon, 22 Oct 2012 17:59:19 +0200 Subject: [PATCH] Let Nasal props.Node.removeChildren behaviour consistent (Don't keep deleted nodes) --- src/Scripting/nasal-props.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5