]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed a race condition so that FG runs most of the time (instead of crashes most...
authorbcoconni <bcoconni>
Sun, 24 Nov 2013 19:06:28 +0000 (20:06 +0100)
committerbcoconni <bcoconni>
Sun, 24 Nov 2013 19:06:28 +0000 (20:06 +0100)
src/Main/globals.cxx

index c666b54590259bf85fce1cb18a6848bc797b2aed..51125d8717f12e139bdd42c8c435e2689d899eae 100644 (file)
@@ -146,7 +146,7 @@ FGGlobals::FGGlobals() :
     ATIS_mgr( NULL ),
     controls( NULL ),
     viewmgr( NULL ),
-    commands( new SGCommandMgr ),
+    commands( SGCommandMgr::instance() ),
     channel_options_list( NULL ),
     initial_waypoints( NULL ),
     fontcache ( new FGFontCache ),