]> git.mxchange.org Git - flightgear.git/commitdiff
Let Nasal props.Node.removeChildren behaviour consistent (Don't keep deleted nodes)
authorThomas Geymayer <tomgey@gmail.com>
Mon, 22 Oct 2012 15:59:19 +0000 (17:59 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Mon, 22 Oct 2012 15:59:19 +0000 (17:59 +0200)
src/Scripting/nasal-props.cxx

index 07aeed43a543e27a83311056dcceacb3718858c2..1d445174eefd50af1eb2738ef780de1654274c28 100644 (file)
@@ -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);