# HG changeset patch # User smatz # Date 1211417262 0 # Node ID 1320fbd5b84fd6190cbb75a51ee97d9c8e4228bf # Parent 909e4fa75ac173d9cca133c52fac30b0ac8c55f6 (svn r13208) -Fix (r13173): it was possible to open invalid submenu from dropdowns diff -r 909e4fa75ac1 -r 1320fbd5b84f src/toolbar_gui.cpp --- a/src/toolbar_gui.cpp Thu May 22 00:37:27 2008 +0000 +++ b/src/toolbar_gui.cpp Thu May 22 00:47:42 2008 +0000 @@ -1153,7 +1153,7 @@ 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),