]> git.mxchange.org Git - flightgear.git/commitdiff
FGNasalModelData: use model XML path as module source
authormfranz <mfranz>
Mon, 23 Mar 2009 18:40:46 +0000 (18:40 +0000)
committerTim Moore <timoore@redhat.com>
Wed, 1 Apr 2009 07:23:54 +0000 (09:23 +0200)
src/Scripting/NasalSys.cxx

index 02772babbddde8daf6b36895f18f1de9fa7d0865..215f007015ae8b05bf3dad54182d6d047bcab6c3 100644 (file)
@@ -1125,7 +1125,7 @@ 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;
 }