Fix a crash clearing the flightplan runway
This commit is contained in:
parent
8487ca7ee6
commit
b3c72a6f2e
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue