From: mfranz Date: Sun, 23 Oct 2005 16:13:53 +0000 (+0000) Subject: ... and don't keep. This causes nasty, mysterious bugs and has no advantages. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=75877ebf430a8bc69d9906725ccc1bfadff326d0;p=flightgear.git ... and don't keep. This causes nasty, mysterious bugs and has no advantages. --- diff --git a/src/Scripting/nasal-props.cxx b/src/Scripting/nasal-props.cxx index f68850916..63ec50218 100644 --- a/src/Scripting/nasal-props.cxx +++ b/src/Scripting/nasal-props.cxx @@ -186,7 +186,7 @@ static naRef f_removeChild(naContext c, naRef me, int argc, naRef* args) naRef child = naVec_get(argv, 0); naRef index = naVec_get(argv, 1); if(!naIsString(child) || !naIsNum(index)) return naNil(); - (*node)->removeChild(naStr_data(child), (int)index.num); + (*node)->removeChild(naStr_data(child), (int)index.num, false); return naNil(); } @@ -203,7 +203,7 @@ static naRef f_removeChildren(naContext c, naRef me, int argc, naRef* args) naRef name = naVec_get(argv, 0); if(!naIsString(name)) return naNil(); vector children - = (*node)->removeChildren(naStr_data(name)); + = (*node)->removeChildren(naStr_data(name), false); for(unsigned int i=0; i