]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scripting/NasalSys.cxx
NasalSys: arg is never null
[flightgear.git] / src / Scripting / NasalSys.cxx
index 2cfbd77d74a7185a21346051d479c7a2d97dc65d..e658ccc5561fcc2a8f10f2016bc8238ab5922816 100644 (file)
@@ -795,7 +795,7 @@ void FGNasalSys::init()
     const char *s = "nasal-dir-initialized";
     SGPropertyNode *signal = fgGetNode("/sim/signals", true);
     signal->setBoolValue(s, true);
-    signal->removeChildren(s, false);
+    signal->removeChildren(s);
 
     // Pull scripts out of the property tree, too
     loadPropertyScripts();
@@ -1151,7 +1151,7 @@ bool FGNasalSys::handleCommand(const SGPropertyNode* arg)
   const char* moduleName = arg->getStringValue("module");
 
   return handleCommand( moduleName,
-                        arg ? arg->getPath(true).c_str() : moduleName,
+                        arg->getPath(true).c_str(),
                         src,
                         arg );
 }