]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a copy-paste bug in the route-manager.
authorJames Turner <zakalawe@mac.com>
Sun, 1 Dec 2013 21:48:03 +0000 (21:48 +0000)
committerJames Turner <zakalawe@mac.com>
Sun, 1 Dec 2013 21:48:03 +0000 (21:48 +0000)
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

index 56228f3bbf5612cbf7a99fa902a71a04c4260462..9c4d91493006a4d47657d9fb68e2a8a36f4c1d25 100644 (file)
@@ -269,7 +269,7 @@ void FGRouteMgr::init() {
   departure->tie("name", SGRawValueMethods<FGRouteMgr, const char*>(*this, 
     &FGRouteMgr::getDepartureName, NULL));
   departure->tie("field-elevation-ft", SGRawValueMethods<FGRouteMgr, double>(*this, 
-                                                                               &FGRouteMgr::getDestinationFieldElevation, NULL));
+                                                                               &FGRouteMgr::getDepartureFieldElevation, NULL));
   departure->getChild("etd", 0, true);
   departure->getChild("takeoff-time", 0, true);