From 2084779b5a9d16d6d04744c913960fd59bde2356 Mon Sep 17 00:00:00 2001 From: Samu Date: Mon, 1 Oct 2018 14:56:12 +0100 Subject: 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. --- src/aircraft_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 6799f7c64..5f36a7577 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -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 */ -- cgit v1.2.3-70-g09d2