diff options
author | Darkvater <Darkvater@openttd.org> | 2006-10-28 23:47:00 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-10-28 23:47:00 +0000 |
commit | d26de4ffa940434c25b6d0636b5201260933c65d (patch) | |
tree | fdaf34aa21fccdd3d6252619b55115d722ab5eaa /dock_gui.c | |
parent | a12805ab178922c64c084cd3d82d8bf203ad4047 (diff) | |
download | openttd-d26de4ffa940434c25b6d0636b5201260933c65d.tar.xz |
(svn r7000) -Fix: Incorrect use of e->we.click when the event is a 'place'. This didn't cause any
bugs so far because the 'click' element was at the same position in the union for both
events.
Diffstat (limited to 'dock_gui.c')
-rw-r--r-- | dock_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dock_gui.c b/dock_gui.c index 3b47b6eec..571c91985 100644 --- a/dock_gui.c +++ b/dock_gui.c @@ -147,7 +147,7 @@ static void BuildDocksToolbWndProc(Window *w, WindowEvent *e) } case WE_PLACE_MOUSEUP: - if (e->we.click.pt.x != -1) { + if (e->we.place.pt.x != -1) { if ((e->we.place.userdata & 0xF) == VPM_X_AND_Y) { // dragged actions GUIPlaceProcDragXY(e); } else if (e->we.place.userdata == VPM_X_OR_Y) { |