Fix an occasional traffic crash
This commit is contained in:
parent
6d76b657d6
commit
c6ed57d04b
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ void FGAIAircraft::ProcessFlightPlan( double dt, time_t now ) {
|
|||
|
||||
double distanceToDescent;
|
||||
// Not the best solution. Double adding of legs is possible
|
||||
if (*fp->getLastWayPoint() == fp->getNextWaypoint() &&
|
||||
if (fp->getLastWaypoint() == fp->getNextWaypoint() &&
|
||||
reachedEndOfCruise(distanceToDescent)) {
|
||||
if (!loadNextLeg(distanceToDescent)) {
|
||||
setDie(true);
|
||||
|
|
Loading…
Reference in a new issue