diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/airport_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp index f739bed62..a4a27a057 100644 --- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -26,6 +26,7 @@ #include "widgets/dropdown_type.h" #include "core/geometry_func.hpp" #include "hotkeys.h" +#include "vehicle_func.h" #include "sprite.h" #include "table/strings.h" @@ -107,6 +108,7 @@ struct BuildAirToolbarWindow : Window { virtual EventState OnKeyPress(uint16 key, uint16 keycode) { + if (!CanBuildVehicleInfrastructure(VEH_AIRCRAFT)) return ES_NOT_HANDLED; int num = CheckHotkeyMatch(airtoolbar_hotkeys, keycode, this); if (num == -1) return ES_NOT_HANDLED; this->OnClick(Point(), num, 1); |