1
0
Fork 0

Fix #6574: Go to takeoff if no hangar

Sends the aircraft to takeoff if the airport it's currently at, got no hangar even if the order is to go to hangar.
pull/7064/head
Samu 2018-10-01 14:56:12 +01:00 committed by Niels Martin Hansen
parent a5836874ef
commit 2084779b5a
1 changed files with 1 additions and 1 deletions

View File

@ -1546,7 +1546,7 @@ static void AircraftEventHandler_AtTerminal(Aircraft *v, const AirportFTAClass *
go_to_hangar = Station::Get(v->targetairport)->airport.HasHangar();
}
if (go_to_hangar) {
if (go_to_hangar && Station::Get(v->targetairport)->airport.HasHangar()) {
v->state = HANGAR;
} else {
/* airplane goto state takeoff, helicopter to helitakeoff */