summaryrefslogtreecommitdiff
path: root/main_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-10-28 23:47:00 +0000
committerDarkvater <darkvater@openttd.org>2006-10-28 23:47:00 +0000
commitfce44a1ce7ebb461ddff516a2a508fb91684a49e (patch)
treefdaf34aa21fccdd3d6252619b55115d722ab5eaa /main_gui.c
parent1d0ebb9cc3198e51ace4e361572da00700c9d564 (diff)
downloadopenttd-fce44a1ce7ebb461ddff516a2a508fb91684a49e.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 'main_gui.c')
-rw-r--r--main_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main_gui.c b/main_gui.c
index 022e9a49a..bb354e16b 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -1351,7 +1351,7 @@ static void ScenEditLandGenWndProc(Window *w, WindowEvent *e)
break;
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);
}