diff options
author | rubidium <rubidium@openttd.org> | 2008-05-04 09:39:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-04 09:39:16 +0000 |
commit | 8ca10353163dfb34174b4c2a1fad94c3286bb868 (patch) | |
tree | cf16c5b3b35ed64652f1699c981d1887983cc39c /src/airport_gui.cpp | |
parent | a26b25aecc9f05727f990ee0c20acb1feef21c9b (diff) | |
download | openttd-8ca10353163dfb34174b4c2a1fad94c3286bb868.tar.xz |
(svn r12939) -Codechange: do not use the window proc to determine whether a toolbar is a rail toolbar, but use the window number.
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); } |