1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 07:59:09 +00:00

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.
This commit is contained in:
Samu
2018-10-01 14:56:12 +01:00
committed by Niels Martin Hansen
parent a5836874ef
commit 2084779b5a

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 */