diff --git a/train_gui.c b/train_gui.c --- a/train_gui.c +++ b/train_gui.c @@ -372,7 +372,7 @@ static int GetVehicleFromTrainDepotWndPt v->tile == w->window_number && v->u.rail.track == 0x80 && --row < 0) { - area_x += w->hscroll.pos; + if (area_x >= 0) area_x += w->hscroll.pos; goto found_it; } }