summaryrefslogtreecommitdiff
path: root/src/build_vehicle_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r--src/build_vehicle_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp
index c695108a9..f8d802c33 100644
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -695,11 +695,11 @@ static void GenerateBuildAircraftList(Window *w)
const AircraftVehicleInfo *avi = AircraftVehInfo(eid);
switch (bv->filter.flags & ~AirportFTAClass::SHORT_STRIP /* we don't care about the length of the runway here */) {
case AirportFTAClass::HELICOPTERS:
- if (avi->subtype != AIR_HELICOPTER) continue;
+ if (avi->subtype != AIR_HELI) continue;
break;
case AirportFTAClass::AIRPLANES:
- if (avi->subtype != AIR_AIRCRAFT) continue;
+ if (!(avi->subtype & AIR_CTOL)) continue;
break;
case AirportFTAClass::ALL: break;