From 3e1af8248a099f1fb7c2a23c1c7681d04a671d2e Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 1 Dec 2013 21:48:03 +0000 Subject: [PATCH] Fix a copy-paste bug in the route-manager. autopilot/route-manager/departure/field-elevation-ft was giving destination field elevation, not departure. Thanks to Hyde Yamakawa for noticing this. --- 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 56228f3bb..9c4d91493 100644 --- a/src/Autopilot/route_mgr.cxx +++ b/src/Autopilot/route_mgr.cxx @@ -269,7 +269,7 @@ void FGRouteMgr::init() { departure->tie("name", SGRawValueMethods(*this, &FGRouteMgr::getDepartureName, NULL)); departure->tie("field-elevation-ft", SGRawValueMethods(*this, - &FGRouteMgr::getDestinationFieldElevation, NULL)); + &FGRouteMgr::getDepartureFieldElevation, NULL)); departure->getChild("etd", 0, true); departure->getChild("takeoff-time", 0, true); -- 2.39.5