]> git.mxchange.org Git - flightgear.git/commitdiff
(depreciated) cmdarg() should return _node, not parent
authormfranz <mfranz>
Mon, 15 Oct 2007 19:12:03 +0000 (19:12 +0000)
committermfranz <mfranz>
Mon, 15 Oct 2007 19:12:03 +0000 (19:12 +0000)
src/Scripting/NasalSys.cxx

index 6fbb4db555fc08605d293e272e278e69dd0871b3..62deef8b060d8a38fa9c56eb400a805281824ae9 100644 (file)
@@ -1031,22 +1031,22 @@ void FGNasalListener::valueChanged(SGPropertyNode* node)
     _first_call = false;
 }
 
-void FGNasalListener::childAdded(SGPropertyNode* parent, SGPropertyNode* child)
+void FGNasalListener::childAdded(SGPropertyNode*, SGPropertyNode* child)
 {
     naRef arg[3];
     arg[0] = _nas->propNodeGhost(_node);
     arg[1] = _nas->propNodeGhost(child);
     arg[2] = naNum(1);
-    call(parent, 3, arg);
+    call(_node, 3, arg);
 }
 
-void FGNasalListener::childRemoved(SGPropertyNode* parent, SGPropertyNode* child)
+void FGNasalListener::childRemoved(SGPropertyNode*, SGPropertyNode* child)
 {
     naRef arg[3];
     arg[0] = _nas->propNodeGhost(_node);
     arg[1] = _nas->propNodeGhost(child);
     arg[2] = naNum(0);
-    call(parent, 3, arg);
+    call(_node, 3, arg);
 }
 
 bool FGNasalListener::changed(SGPropertyNode* node)