]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/subsystem_mgr.cxx
Some Linux platforms need <cstdio> for snprintf.
[simgear.git] / simgear / structure / subsystem_mgr.cxx
index 35d6c59d829c8c89482eb7ce1cca4c4e852b0df3..f9eb752b8742ba0f7af2e0334052964f61e01fd6 100644 (file)
@@ -333,6 +333,16 @@ SGSubsystemGroup::remove_subsystem (const string &name)
     SG_LOG(SG_GENERAL, SG_WARN, "remove_subsystem: missing:" << name);
 }
 
+//------------------------------------------------------------------------------
+void SGSubsystemGroup::clearSubsystems()
+{
+  for( MemberVec::iterator it = _members.begin();
+                           it != _members.end();
+                         ++it )
+    delete *it;
+  _members.clear();
+}
+
 void
 SGSubsystemGroup::set_fixed_update_time(double dt)
 {