From fce44a1ce7ebb461ddff516a2a508fb91684a49e Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sat, 28 Oct 2006 23:47:00 +0000 Subject: (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. --- rail_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rail_gui.c') diff --git a/rail_gui.c b/rail_gui.c index 6a09dad4b..60fcdafb9 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -464,7 +464,7 @@ static void BuildRailToolbWndProc(Window *w, WindowEvent *e) } case WE_PLACE_MOUSEUP: - if (e->we.click.pt.x != -1) { + if (e->we.place.pt.x != -1) { TileIndex start_tile = e->we.place.starttile; TileIndex end_tile = e->we.place.tile; -- cgit v1.2.3-54-g00ecf