]> git.mxchange.org Git - flightgear.git/commitdiff
Modified Files:
authorfrohlich <frohlich>
Thu, 4 Jan 2007 12:48:21 +0000 (12:48 +0000)
committerfrohlich <frohlich>
Thu, 4 Jan 2007 12:48:21 +0000 (12:48 +0000)
globals.cxx: Use the command manager singleton

src/Main/globals.cxx

index 9770d0d08727eb69d5a144e84a799baa5c36e6da..33098d807ee09619d331933e3bc437f0ee78a381 100644 (file)
@@ -73,7 +73,7 @@ FGGlobals::FGGlobals() :
     props( new SGPropertyNode ),
     initial_state( NULL ),
     locale( NULL ),
-    commands( new SGCommandMgr ),
+    commands( SGCommandMgr::instance() ),
     model_lib( NULL ),
     acmodel( NULL ),
     model_mgr( NULL ),
@@ -103,7 +103,6 @@ FGGlobals::~FGGlobals()
     delete event_mgr;
     delete initial_state;
     delete props;
-    delete commands;
     delete io;
     delete fontcache;
     delete renderer;