diff options
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r-- | src/group_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp index 1c321c4b3..657a1e39e 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -596,7 +596,7 @@ public: nwi->widget_data = (this->vscroll2.GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START); nwi = this->GetWidget<NWidgetCore>(GRP_WIDGET_LIST_VEHICLE); - this->vscroll.SetCapacity(this->GetWidget<NWidgetBase>(GRP_WIDGET_LIST_VEHICLE)->current_y / this->resize.step_height); + this->vscroll.SetCapacityFromWidget(this, GRP_WIDGET_LIST_VEHICLE); nwi->widget_data = (this->vscroll.GetCapacity() << MAT_ROW_START) + (1 << MAT_COL_START); } |