]> git.mxchange.org Git - flightgear.git/commitdiff
make sure the "nasal" subsystem is one of the last to be removed. That
authormfranz <mfranz>
Sat, 10 Jun 2006 22:24:05 +0000 (22:24 +0000)
committermfranz <mfranz>
Sat, 10 Jun 2006 22:24:05 +0000 (22:24 +0000)
way it can still process listener code during shutdown.

src/Main/fg_init.cxx

index 37248c27ac4a1c0dc78ea9d4809737856086810d..1777b570ccba48a8b5324636251378ff28ffaff2 100644 (file)
@@ -1780,7 +1780,7 @@ bool fgInitSubsystems() {
     // Do this last, so that the loaded scripts see initialized state
     ////////////////////////////////////////////////////////////////////////
     FGNasalSys* nasal = new FGNasalSys();
-    globals->add_subsystem("nasal", nasal);
+    globals->add_subsystem("nasal", nasal, SGSubsystemMgr::INIT);
     nasal->init();
 
     // initialize methods that depend on other subsystems.