Fix for a misplaced boolean assignment that caused erratic runway selection.
This commit is contained in:
parent
7282491294
commit
d33c748485
1 changed files with 2 additions and 2 deletions
|
@ -231,10 +231,10 @@ void RunwayGroup::setActive(const string &aptId,
|
||||||
// preference, however, we don't want to stop right there, because we also
|
// 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.
|
// don't want to randomly swap runway preferences, unless there is a need to.
|
||||||
//
|
//
|
||||||
|
validSelection = true;
|
||||||
for (int j = 0; j < activeRwys; j++)
|
for (int j = 0; j < activeRwys; j++)
|
||||||
{
|
{
|
||||||
validSelection = true;
|
|
||||||
name = rwyList[j].getRwyList(i);
|
name = rwyList[j].getRwyList(i);
|
||||||
//cerr << "Name of Runway: " << name << endl;
|
//cerr << "Name of Runway: " << name << endl;
|
||||||
if (globals->get_runways()->search( aptId,
|
if (globals->get_runways()->search( aptId,
|
||||||
|
|
Loading…
Reference in a new issue