1
0
Fork 0

Fix an occasional traffic crash

This commit is contained in:
James Turner 2022-11-06 11:42:20 +00:00
parent 6d76b657d6
commit c6ed57d04b

View file

@ -334,7 +334,7 @@ void FGAIAircraft::ProcessFlightPlan( double dt, time_t now ) {
double distanceToDescent; double distanceToDescent;
// Not the best solution. Double adding of legs is possible // Not the best solution. Double adding of legs is possible
if (*fp->getLastWayPoint() == fp->getNextWaypoint() && if (fp->getLastWaypoint() == fp->getNextWaypoint() &&
reachedEndOfCruise(distanceToDescent)) { reachedEndOfCruise(distanceToDescent)) {
if (!loadNextLeg(distanceToDescent)) { if (!loadNextLeg(distanceToDescent)) {
setDie(true); setDie(true);