]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a copy-and-paste bug with destination runways. Caught by Scott Hamilton.
authorjmt <jmt>
Sun, 18 Oct 2009 17:54:18 +0000 (17:54 +0000)
committerTim Moore <timoore@redhat.com>
Mon, 19 Oct 2009 21:56:51 +0000 (23:56 +0200)
src/Autopilot/route_mgr.cxx

index 228108e9ca50f5918675899b8824cd14de514769..bd6b47e07bea7d64f1686c911a00becd97d6fbbb 100644 (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);