]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scripting/NasalSys.cxx
Don't restore initial screen geometry because there is nothing in fg_os* to resize...
[flightgear.git] / src / Scripting / NasalSys.cxx
index 17187e9b39b755ccdab13d894558f13ef450c0b4..c0b25c4eaf47377baa79a1279da23315840800ef 100644 (file)
@@ -682,7 +682,7 @@ FGNasalListener::FGNasalListener(SGPropertyNode_ptr node, naRef handler,
     _handler(handler),
     _gcKey(key),
     _nas(nasal),
-    _active(false)
+    _active(0)
 {
 }
 
@@ -698,7 +698,7 @@ void FGNasalListener::valueChanged(SGPropertyNode* node)
                 "on property " << node->getPath());
         return;
     }
-    _active = true;
+    _active++;
     _nas->_cmdArg = node;
     naContext c = naNewContext();
     naModUnlock();
@@ -707,7 +707,7 @@ void FGNasalListener::valueChanged(SGPropertyNode* node)
     if(naGetError(c))
         _nas->logError(c);
     naFreeContext(c);
-    _active = false;
+    _active--;
 }