From: fredb Date: Sat, 20 May 2006 13:29:31 +0000 (+0000) Subject: Create the /sim/ai node if someone has the unfortunate idea of removing it from prefe... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d6320ad76bcb7ce265cc0c5f2cbfe9fac0042306;p=flightgear.git Create the /sim/ai node if someone has the unfortunate idea of removing it from preferences.xml --- diff --git a/src/Main/options.cxx b/src/Main/options.cxx index fb396de3c..48b6f20b7 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -1168,7 +1168,7 @@ fgOptLivery( const char *arg ) static int fgOptScenario( const char *arg ) { - SGPropertyNode_ptr ai_node = fgGetNode( "/sim/ai", false ); + SGPropertyNode_ptr ai_node = fgGetNode( "/sim/ai", true ); vector scenarii = ai_node->getChildren( "scenario" ); int index = -1; for ( size_t i = 0; i < scenarii.size(); ++i ) {