From: jmt Date: Sun, 18 Oct 2009 17:54:18 +0000 (+0000) Subject: Fix a copy-and-paste bug with destination runways. Caught by Scott Hamilton. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1a05ed6b3d714be2942eb06bfdc5413f9ea1432f;p=flightgear.git Fix a copy-and-paste bug with destination runways. Caught by Scott Hamilton. --- 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);