From 0d2266a3aca9582695d9e13691d78d5cdd3a9e40 Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 22 May 2008 00:47:42 +0000 Subject: [PATCH] (svn r13208) -Fix (r13173): it was possible to open invalid submenu from dropdowns --- src/toolbar_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index 5f977a2ad0..80d9af4080 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),