]> git.mxchange.org Git - flightgear.git/commitdiff
set module namespace in globals, otherwise two subsequent calls can't share
authormfranz <mfranz>
Sat, 17 Mar 2007 20:51:06 +0000 (20:51 +0000)
committermfranz <mfranz>
Sat, 17 Mar 2007 20:51:06 +0000 (20:51 +0000)
variables, which makes the whole module kind-of pointless

src/Scripting/NasalSys.cxx

index bcc797e12073cb39287c867c72f955bf8681ec63..9494575f7f08586f0b47ba80b7e36486d428cbef 100644 (file)
@@ -612,6 +612,7 @@ bool FGNasalSys::handleCommand(const SGPropertyNode* arg)
         naStr_fromdata(modname, (char*)moduleName, strlen(moduleName));
         if(!naHash_get(_globals, modname, &locals))
             locals = naNewHash(c);
+        hashset(_globals, moduleName, locals);
     }
     // Cache the command argument for inspection via cmdarg().  For
     // performance reasons, we won't bother with it if the invoked