also set new target altitude if wp is appended to empty list
This commit is contained in:
parent
2ff16ca93f
commit
cbddd130ec
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue