From d886f2a5f8ed973e5424fcc3880904da1d2dd0de Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 20 Nov 2012 12:31:07 +0000 Subject: [PATCH] Make EnvironmentMgr shutdown its subsystems. With this change, Environment subsystem can be removed and re-added at runtime using the factory commands. --- src/Environment/environment_mgr.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Environment/environment_mgr.cxx b/src/Environment/environment_mgr.cxx index e7688d793..b4e62bc15 100644 --- a/src/Environment/environment_mgr.cxx +++ b/src/Environment/environment_mgr.cxx @@ -158,6 +158,7 @@ void FGEnvironmentMgr::shutdown() { globals->get_event_mgr()->removeTask("updateClosestAirport"); + SGSubsystemGroup::shutdown(); } void