From: James Turner Date: Tue, 20 Nov 2012 12:31:07 +0000 (+0000) Subject: Make EnvironmentMgr shutdown its subsystems. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d886f2a5f8ed973e5424fcc3880904da1d2dd0de;p=flightgear.git Make EnvironmentMgr shutdown its subsystems. With this change, Environment subsystem can be removed and re-added at runtime using the factory commands. --- 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