summaryrefslogtreecommitdiff
path: root/widget.c
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-09-23 02:39:24 +0000
committerbelugas <belugas@openttd.org>2006-09-23 02:39:24 +0000
commit98ba395277708f1e1fbddacee1f909fac366e96c (patch)
tree94c5771fcfbd839db8eabe8b14662d04e44ab61c /widget.c
parente20c8be1722ab9d1aa23b3b8bfb8207628f8322e (diff)
downloadopenttd-98ba395277708f1e1fbddacee1f909fac366e96c.tar.xz
(svn r6499) -Codechange: Finally, got "byte event" outside of the union WindowEvent, which is now a struct
Diffstat (limited to 'widget.c')
-rw-r--r--widget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/widget.c b/widget.c
index fdd554efe..a56b8deae 100644
--- a/widget.c
+++ b/widget.c
@@ -562,8 +562,8 @@ static void DropdownMenuWndProc(Window *w, WindowEvent *e)
if (WP(w,dropdown_d).click_delay != 0 && --WP(w,dropdown_d).click_delay == 0) {
WindowEvent e;
e.event = WE_DROPDOWN_SELECT;
- e.dropdown.button = WP(w,dropdown_d).parent_button;
- e.dropdown.index = WP(w,dropdown_d).selected_index;
+ e.we.dropdown.button = WP(w,dropdown_d).parent_button;
+ e.we.dropdown.index = WP(w,dropdown_d).selected_index;
w2->wndproc(w2, &e);
DeleteWindow(w);
return;