1
0
Fork 0

set module namespace in globals, otherwise two subsequent calls can't share

variables, which makes the whole module kind-of pointless
This commit is contained in:
mfranz 2007-03-17 20:51:06 +00:00
parent cc30d4d80e
commit 8c7c217037

View 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