From: mfranz Date: Mon, 1 Oct 2007 15:59:24 +0000 (+0000) Subject: if a local (ai/mp) root node is given, append it to the module name, so X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c8de2cd08ba501def5e33661729b1f0b7d17def6;p=flightgear.git if a local (ai/mp) root node is given, append it to the module name, so that one instance doesn't destroy the namespace of all other instances --- diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index 9b78f8081..da88fbf13 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -925,6 +925,8 @@ void FGNasalModelData::modelLoaded(const string& path, SGPropertyNode *prop, return; _module = path; + if(_props) + _module += ':' + _props->getPath(); const char *s = load ? load->getStringValue() : ""; nasalSys->createModule(_module.c_str(), _module.c_str(), s, strlen(s), _props); }