From: durk Date: Tue, 28 Mar 2006 06:14:02 +0000 (+0000) Subject: Fix for a misplaced boolean assignment that caused erratic runway selection. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d33c748485b3f7a2eb6888ab6e83a1cf031d5d4d;p=flightgear.git Fix for a misplaced boolean assignment that caused erratic runway selection. --- diff --git a/src/Airports/runwayprefs.cxx b/src/Airports/runwayprefs.cxx index 5a5a146b2..1a7f1dd11 100644 --- a/src/Airports/runwayprefs.cxx +++ b/src/Airports/runwayprefs.cxx @@ -231,10 +231,10 @@ void RunwayGroup::setActive(const string &aptId, // preference, however, we don't want to stop right there, because we also // don't want to randomly swap runway preferences, unless there is a need to. // - + validSelection = true; for (int j = 0; j < activeRwys; j++) { - validSelection = true; + name = rwyList[j].getRwyList(i); //cerr << "Name of Runway: " << name << endl; if (globals->get_runways()->search( aptId,