From d3f6ab38c2547b9536d0af98c71c411e2cd4fd8b Mon Sep 17 00:00:00 2001 From: bcoconni Date: Sun, 24 Nov 2013 20:06:28 +0100 Subject: [PATCH] Fixed a race condition so that FG runs most of the time (instead of crashes most of the time) --- src/Main/globals.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ), -- 2.39.5