From: bcoconni Date: Sun, 24 Nov 2013 19:06:28 +0000 (+0100) Subject: Fixed a race condition so that FG runs most of the time (instead of crashes most... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d3f6ab38c2547b9536d0af98c71c411e2cd4fd8b;p=flightgear.git Fixed a race condition so that FG runs most of the time (instead of crashes most of the time) --- diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index c666b5459..51125d871 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -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 ),