]> git.mxchange.org Git - flightgear.git/commitdiff
Create the /sim/ai node if someone has the unfortunate idea of removing it from prefe...
authorfredb <fredb>
Sat, 20 May 2006 13:29:31 +0000 (13:29 +0000)
committerfredb <fredb>
Sat, 20 May 2006 13:29:31 +0000 (13:29 +0000)
src/Main/options.cxx

index fb396de3c006811c09c5784c3a92a47c18de1ef5..48b6f20b77712df0bef7df00c4b1053c33fa2e03 100644 (file)
@@ -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<SGPropertyNode_ptr> scenarii = ai_node->getChildren( "scenario" );
     int index = -1;
     for ( size_t i = 0; i < scenarii.size(); ++i ) {