]> git.mxchange.org Git - flightgear.git/commitdiff
Make EnvironmentMgr shutdown its subsystems.
authorJames Turner <zakalawe@mac.com>
Tue, 20 Nov 2012 12:31:07 +0000 (12:31 +0000)
committerJames Turner <zakalawe@mac.com>
Tue, 20 Nov 2012 12:31:07 +0000 (12:31 +0000)
With this change, Environment subsystem can be removed and re-added at runtime using the factory commands.

src/Environment/environment_mgr.cxx

index e7688d793b993b38b6d0c5efd51929561b0ad8f0..b4e62bc15a8dde358902f8b9e22221cef8bf68c4 100644 (file)
@@ -158,6 +158,7 @@ void
 FGEnvironmentMgr::shutdown()
 {
   globals->get_event_mgr()->removeTask("updateClosestAirport");
+  SGSubsystemGroup::shutdown();
 }
 
 void