summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-22 00:47:42 +0000
committersmatz <smatz@openttd.org>2008-05-22 00:47:42 +0000
commit0df8060a646b9da96f8a7e38bcb4b71dfbad5615 (patch)
tree7795fc842da89fb29d16e12f0def0f0e309de280
parent6b4f70099ea0710fbbc139f80c2543c274fdf5c1 (diff)
downloadopenttd-0df8060a646b9da96f8a7e38bcb4b71dfbad5615.tar.xz
(svn r13208) -Fix (r13173): it was possible to open invalid submenu from dropdowns
-rw-r--r--src/toolbar_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index 5f977a2ad..80d9af408 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -1153,7 +1153,7 @@ struct ToolbarMenuWindow : Window {
ToolbarMenuWindow(int x, int y, int width, int height, const Widget *widgets, int item_count,
int sel_index, int parent_button, StringID base_string, int checked_items,
- int disabled_mask) :
+ int disabled_items) :
Window(x, y, width, height, WC_TOOLBAR_MENU, widgets),
item_count(item_count), sel_index(sel_index), main_button(GB(parent_button, 0, 8)),
action_id((GB(parent_button, 8, 8) != 0) ? GB(parent_button, 8, 8) : parent_button),