1
0
Fork 0

Fix a copy-and-paste bug with destination runways. Caught by Scott Hamilton.

This commit is contained in:
jmt 2009-10-18 17:54:18 +00:00 committed by Tim Moore
parent afb1e7ffe9
commit 1a05ed6b3d

View file

@ -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);