From d6320ad76bcb7ce265cc0c5f2cbfe9fac0042306 Mon Sep 17 00:00:00 2001 From: fredb Date: Sat, 20 May 2006 13:29:31 +0000 Subject: [PATCH] Create the /sim/ai node if someone has the unfortunate idea of removing it from preferences.xml --- src/Main/options.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.39.5