]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/globals.cxx
set /sim/fg-current to current working directory; getcwd() is defined in
[flightgear.git] / src / Main / globals.cxx
index 9770d0d08727eb69d5a144e84a799baa5c36e6da..ffb8a9fb21c20f4eff372de9b10ed8832f886f58 100644 (file)
@@ -66,14 +66,13 @@ FGGlobals::FGGlobals() :
     soundmgr( NULL ),
     airports( NULL ),
     ATC_mgr( NULL ),
-    ATC_display( NULL ),
     AI_mgr( NULL ),
     controls( NULL ),
     viewmgr( NULL ),
     props( new SGPropertyNode ),
     initial_state( NULL ),
     locale( NULL ),
-    commands( new SGCommandMgr ),
+    commands( SGCommandMgr::instance() ),
     model_lib( NULL ),
     acmodel( NULL ),
     model_mgr( NULL ),
@@ -103,7 +102,6 @@ FGGlobals::~FGGlobals()
     delete event_mgr;
     delete initial_state;
     delete props;
-    delete commands;
     delete io;
     delete fontcache;
     delete renderer;