From b361105202639a037f0841c8ea351978ece4be28 Mon Sep 17 00:00:00 2001 From: mfranz Date: Mon, 2 Apr 2007 12:47:26 +0000 Subject: [PATCH] Csaba HALASZ: don't treat every entry in a scenario file as model entry, especially those called . This was responsible for the aircraft at --lon=0 --lat=0. --- src/AIModel/AIManager.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AIModel/AIManager.cxx b/src/AIModel/AIManager.cxx index c7643a22d..0351e8342 100644 --- a/src/AIModel/AIManager.cxx +++ b/src/AIModel/AIManager.cxx @@ -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") {