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:
parent
cc30d4d80e
commit
8c7c217037
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue