Create the /sim/ai node if someone has the unfortunate idea of removing it from preferences.xml
This commit is contained in:
parent
b55833dffb
commit
d6320ad76b
1 changed files with 1 additions and 1 deletions
|
@ -1168,7 +1168,7 @@ fgOptLivery( const char *arg )
|
||||||
static int
|
static int
|
||||||
fgOptScenario( const char *arg )
|
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" );
|
vector<SGPropertyNode_ptr> scenarii = ai_node->getChildren( "scenario" );
|
||||||
int index = -1;
|
int index = -1;
|
||||||
for ( size_t i = 0; i < scenarii.size(); ++i ) {
|
for ( size_t i = 0; i < scenarii.size(); ++i ) {
|
||||||
|
|
Loading…
Reference in a new issue