Fixed typo preventing loading alternative aircraft from the
/sim/aircraft property in preferences.xml.
This commit is contained in:
parent
f82b717c8b
commit
2f66d01298
1 changed files with 3 additions and 2 deletions
|
@ -239,9 +239,10 @@ bool fgInitConfig ( int argc, char **argv ) {
|
|||
aircraft_path.append("Aircraft");
|
||||
aircraft_path.append(aircraft);
|
||||
aircraft_path.concat("-set.xml");
|
||||
SG_LOG(SG_INPUT, SG_INFO, "Reading default aircraft: " << aircraft);
|
||||
SG_LOG(SG_INPUT, SG_INFO, "Reading default aircraft: " << aircraft
|
||||
<< " from " << props_path.str());
|
||||
try {
|
||||
readProperties(props_path.str(), globals->get_props());
|
||||
readProperties(aircraft_path.str(), globals->get_props());
|
||||
} catch (const sg_exception &e) {
|
||||
string message = "Error reading default aircraft: ";
|
||||
message += e.getFormattedMessage();
|
||||
|
|
Loading…
Add table
Reference in a new issue