1
0
Fork 0

Fix a crash clearing the flightplan runway

This commit is contained in:
James Turner 2019-01-12 23:38:45 +00:00
parent 8487ca7ee6
commit b3c72a6f2e

View file

@ -554,7 +554,7 @@ void FlightPlan::setDestination(FGRunway* rwy)
lockDelegates();
_arrivalChanged = true;
_destinationRunway = rwy;
if (_destination != rwy->airport()) {
if (rwy && (_destination != rwy->airport())) {
_destination = rwy->airport();
clearSTAR();
}