AITraffic: workaround missing node
Avoid 'findShortestRoute' exception by checking both the start and end nodes are valid first. Doesn't fix the error but avoids a traffic shutdown. Sentry-Id: FLIGHTGEAR-2F
This commit is contained in:
parent
77b6d635fe
commit
18aabbdbb5
1 changed files with 1 additions and 1 deletions
|
@ -320,7 +320,7 @@ bool FGAIFlightPlan::createTakeoffTaxi(FGAIAircraft * ac, bool firstFlight,
|
|||
}
|
||||
|
||||
FGTaxiRoute taxiRoute;
|
||||
if ( runwayNode )
|
||||
if ( runwayNode && node)
|
||||
taxiRoute = gn->findShortestRoute(node, runwayNode);
|
||||
|
||||
// This may happen with buggy ground networks
|
||||
|
|
Loading…
Add table
Reference in a new issue