]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scripting/NasalSys.cxx
fix a typo
[flightgear.git] / src / Scripting / NasalSys.cxx
index 02772babbddde8daf6b36895f18f1de9fa7d0865..b76d72215333a66ce8f21c3d4ae7a3ae928a0f53 100644 (file)
@@ -1125,9 +1125,8 @@ void FGNasalModelData::modelLoaded(const string& path, SGPropertyNode *prop,
     naRef arg[2];
     arg[0] = nasalSys->propNodeGhost(_root);
     arg[1] = nasalSys->propNodeGhost(prop);
-    nasalSys->createModule(_module.c_str(), _module.c_str(), s, strlen(s),
+    nasalSys->createModule(_module.c_str(), path.c_str(), s, strlen(s),
                            _root, 2, arg);
-    _props = 0;
 }
 
 FGNasalModelData::~FGNasalModelData()