From: mfranz Date: Mon, 2 Apr 2007 12:47:26 +0000 (+0000) Subject: Csaba HALASZ: don't treat every entry in a scenario file as model entry, X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b361105202639a037f0841c8ea351978ece4be28;p=flightgear.git 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. --- 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") {