Csaba HALASZ: don't treat every entry in a scenario file as model entry,
especially those called <description>. This was responsible for the aircraft at --lon=0 --lat=0.
This commit is contained in:
parent
d9cbdb53ff
commit
b361105202
1 changed files with 2 additions and 0 deletions
|
@ -222,6 +222,8 @@ void FGAIManager::processScenario( const string &filename ) {
|
|||
|
||||
for (int i = 0; i < scenarios->nChildren(); i++) {
|
||||
SGPropertyNode* scEntry = scenarios->getChild(i);
|
||||
if (strcmp(scEntry->getName(), "entry"))
|
||||
continue;
|
||||
std::string type = scEntry->getStringValue("type", "aircraft");
|
||||
|
||||
if (type == "aircraft") {
|
||||
|
|
Loading…
Reference in a new issue