Fix a copy-and-paste bug with destination runways. Caught by Scott Hamilton.
This commit is contained in:
parent
afb1e7ffe9
commit
1a05ed6b3d
1 changed files with 1 additions and 1 deletions
|
@ -508,7 +508,7 @@ bool FGRouteMgr::activate()
|
|||
|
||||
runwayId = (destination->getStringValue("runway"));
|
||||
if (destApt->hasRunwayWithIdent(runwayId)) {
|
||||
FGRunway* runway = depApt->getRunwayByIdent(runwayId);
|
||||
FGRunway* runway = destApt->getRunwayByIdent(runwayId);
|
||||
SGWayPoint swp(runway->end(),
|
||||
destApt->ident() + "-" + runway->ident(), runway->name());
|
||||
add_waypoint(swp);
|
||||
|
|
Loading…
Reference in a new issue