]> git.mxchange.org Git - flightgear.git/commitdiff
also set new target altitude if wp is appended to empty list
authormfranz <mfranz>
Wed, 10 May 2006 21:46:27 +0000 (21:46 +0000)
committermfranz <mfranz>
Wed, 10 May 2006 21:46:27 +0000 (21:46 +0000)
src/Autopilot/route_mgr.cxx

index 302d363deb99db76320bef7cbde0cd932ca27924..915f9de2f73e460b8292c0061de1d1f5df692e7a 100644 (file)
@@ -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 );