diff --git a/src/station_gui.cpp b/src/station_gui.cpp index fc56919dab..9843e16f64 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -1336,7 +1336,7 @@ struct SelectStationWindow : Window { { if (widget != JSW_PANEL) return; - uint32 st_index = (pt.y - this->GetWidget(JSW_PANEL)->pos_y - WD_FRAMERECT_TOP) / this->resize.step_height; + uint32 st_index = (pt.y - this->GetWidget(JSW_PANEL)->pos_y - WD_FRAMERECT_TOP) / this->resize.step_height + this->vscroll.GetPosition(); bool distant_join = (st_index > 0); if (distant_join) st_index--;