]> git.mxchange.org Git - flightgear.git/commitdiff
Fix for a misplaced boolean assignment that caused erratic runway selection.
authordurk <durk>
Tue, 28 Mar 2006 06:14:02 +0000 (06:14 +0000)
committerdurk <durk>
Tue, 28 Mar 2006 06:14:02 +0000 (06:14 +0000)
src/Airports/runwayprefs.cxx

index 5a5a146b24c923c33966f155776c8f70d2bd2681..1a7f1dd117d8f81f20389160dc66f248754e1763 100644 (file)
@@ -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,