(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.
This commit is contained in:
Darkvater
2006-10-28 23:47:00 +00:00
parent a12805ab17
commit d26de4ffa9
5 changed files with 5 additions and 5 deletions

View File

@@ -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;