1
0
Fork 0

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:
James Turner 2017-09-29 12:49:10 +01:00
parent a4f1f8aca1
commit b7a2e993b6

View file

@ -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()) {