diff options
Diffstat (limited to 'settings_gui.c')
-rw-r--r-- | settings_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings_gui.c b/settings_gui.c index cc7a5b5f9..223517890 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -1219,7 +1219,7 @@ static void NewgrfWndProc(Window *w, WindowEvent *e) case 3: { // select a grf file int y = (e->click.pt.y - NEWGRF_WND_PROC_OFFSET_TOP_WIDGET) / NEWGRF_WND_PROC_ROWSIZE; - if (y >= w->vscroll.cap) { return;} // click out of bounds + if (y >= w->vscroll.cap) return; // click out of bounds y += w->vscroll.pos; |