From 8c7c21703758b00f7e543ac4a38bfbbefe879237 Mon Sep 17 00:00:00 2001 From: mfranz Date: Sat, 17 Mar 2007 20:51:06 +0000 Subject: [PATCH] set module namespace in globals, otherwise two subsequent calls can't share variables, which makes the whole module kind-of pointless --- src/Scripting/NasalSys.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index bcc797e12..9494575f7 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -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