1
0
Fork 0

Create the /sim/ai node if someone has the unfortunate idea of removing it from preferences.xml

This commit is contained in:
fredb 2006-05-20 13:29:31 +00:00
parent b55833dffb
commit d6320ad76b

View 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 ) {