Fix crash in traffic code
Hit an exception where no runway node was found creating the landing taxi. Probably should not happen but anyway let's not crash
This commit is contained in:
parent
a4f1f8aca1
commit
b7a2e993b6
1 changed files with 1 additions and 1 deletions
|
@ -409,7 +409,7 @@ bool FGAIFlightPlan::createLandingTaxi(FGAIAircraft * ac, FGAirport * apt,
|
|||
// fallback mechanism for this.
|
||||
// Starting from gate 0 doesn't work, so don't try it
|
||||
FGTaxiRoute taxiRoute;
|
||||
if (gate.isValid())
|
||||
if (runwayNode && gate.isValid())
|
||||
taxiRoute = gn->findShortestRoute(runwayNode, gate.parking());
|
||||
|
||||
if (taxiRoute.empty()) {
|
||||
|
|
Loading…
Reference in a new issue