1
0
Fork 0

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.
This commit is contained in:
James Turner 2013-12-01 21:48:03 +00:00
parent 8aba04c3a2
commit 3e1af8248a

View 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);