summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstormcone <48624099+stormcone@users.noreply.github.com>2020-02-04 23:26:59 +0100
committerCharles Pigott <charlespigott@googlemail.com>2020-02-06 16:10:46 +0000
commit492d2704f1503303b7eaea15559649c71b747c87 (patch)
tree8ad62a7add127137639e730bcb5a86f82c40ccca
parent805ecd32be64e14d8555ebc06eadf673bdf401ee (diff)
downloadopenttd-492d2704f1503303b7eaea15559649c71b747c87.tar.xz
Fix #7974: Crash when CTRL+click to show a vehicle group that is collapsed
-rw-r--r--src/group_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index e28e10bb2..0bf8589ac 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);