From 492d2704f1503303b7eaea15559649c71b747c87 Mon Sep 17 00:00:00 2001 From: stormcone <48624099+stormcone@users.noreply.github.com> Date: Tue, 4 Feb 2020 23:26:59 +0100 Subject: [PATCH] Fix #7974: Crash when CTRL+click to show a vehicle group that is collapsed --- src/group_gui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/group_gui.cpp b/src/group_gui.cpp index e28e10bb2c..0bf8589ac5 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -1017,6 +1017,7 @@ public: } this->groups.ForceRebuild(); this->BuildGroupList(this->owner); + this->group_sb->SetCount((uint)this->groups.size()); id_g = find_index(this->groups, g); } this->group_sb->ScrollTowards(id_g);