From 7d88714e2d774c3bb1e07279dd767e3248d779e3 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 24 Nov 2012 13:50:37 +0000 Subject: [PATCH] Fix duplicate runway wpt in default approach. --- src/Autopilot/route_mgr.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Autopilot/route_mgr.cxx b/src/Autopilot/route_mgr.cxx index f28403197..524bffa90 100644 --- a/src/Autopilot/route_mgr.cxx +++ b/src/Autopilot/route_mgr.cxx @@ -1062,9 +1062,7 @@ flightgear::Approach* createDefaultApproach(FGRunway* aRunway) ss.str(""); ss << aRunway->ident() << "-GS"; wpts.push_back(new BasicWaypt(p, ss.str(), NULL)); - - wpts.push_back(new RunwayWaypt(aRunway, NULL)); - + BOOST_FOREACH(Waypt* w, wpts) { w->setFlag(WPT_APPROACH); w->setFlag(WPT_GENERATED); -- 2.39.5