From: James Turner Date: Sat, 24 Nov 2012 13:50:37 +0000 (+0000) Subject: Fix duplicate runway wpt in default approach. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7d88714e2d774c3bb1e07279dd767e3248d779e3;p=flightgear.git Fix duplicate runway wpt in default approach. --- 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);