diff options
Diffstat (limited to 'src/airport_gui.cpp')
-rw-r--r-- | src/airport_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp index 991c579f0..5728380e8 100644 --- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -139,8 +139,8 @@ void ShowBuildAirToolbar() { if (!IsValidPlayer(_current_player)) return; - DeleteWindowById(WC_BUILD_TOOLBAR, 0); - Window *w = AllocateWindowDescFront(&_air_toolbar_desc, 0); + DeleteWindowByClass(WC_BUILD_TOOLBAR); + Window *w = AllocateWindowDescFront(&_air_toolbar_desc, TRANSPORT_AIR); if (_patches.link_terraform_toolbar) ShowTerraformToolbar(w); } |