diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index b2f08fe01..e658ccc55 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -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 ); }