From: mfranz Date: Mon, 23 Mar 2009 18:40:46 +0000 (+0000) Subject: FGNasalModelData: use model XML path as module source X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3930967645396fe43c07d8e58feae99b2de6de77;p=flightgear.git FGNasalModelData: use model XML path as module source --- diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index 02772babb..215f00701 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -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; }