subsystem_mgr = NULL; // important so ::get_subsystem returns NULL
delete time_params;
- delete matlib;
+ set_matlib(NULL);
delete route_mgr;
delete ATIS_mgr;
delete channel_options_list;
_tile_mgr = t;
}
+void FGGlobals::set_matlib( SGMaterialLib *m )
+{
+ if (matlib)
+ delete matlib;
+ matlib = m;
+}
+
// end of globals.cxx