From 1a05ed6b3d714be2942eb06bfdc5413f9ea1432f Mon Sep 17 00:00:00 2001 From: jmt Date: Sun, 18 Oct 2009 17:54:18 +0000 Subject: [PATCH] Fix a copy-and-paste bug with destination runways. Caught by Scott Hamilton. --- src/Autopilot/route_mgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Autopilot/route_mgr.cxx b/src/Autopilot/route_mgr.cxx index 228108e9c..bd6b47e07 100644 --- a/src/Autopilot/route_mgr.cxx +++ b/src/Autopilot/route_mgr.cxx @@ -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); -- 2.39.5