From cbddd130eced76579a39522d7ca6771199b2114d Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 10 May 2006 21:46:27 +0000 Subject: [PATCH] also set new target altitude if wp is appended to empty list --- 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 302d363de..915f9de2f 100644 --- a/src/Autopilot/route_mgr.cxx +++ b/src/Autopilot/route_mgr.cxx @@ -229,7 +229,7 @@ void FGRouteMgr::update( double dt ) { void FGRouteMgr::add_waypoint( const SGWayPoint& wp, int n ) { - if ( n == 0 ) + if ( n == 0 || !route->size()) altitude_set = false; route->add_waypoint( wp, n ); -- 2.39.5