Fix #7974: Crash when CTRL+click to show a vehicle group that is collapsed

This commit is contained in:
stormcone
2020-02-04 23:26:59 +01:00
committed by Charles Pigott
parent 805ecd32be
commit 492d2704f1

View File

@@ -1017,6 +1017,7 @@ public:
} }
this->groups.ForceRebuild(); this->groups.ForceRebuild();
this->BuildGroupList(this->owner); this->BuildGroupList(this->owner);
this->group_sb->SetCount((uint)this->groups.size());
id_g = find_index(this->groups, g); id_g = find_index(this->groups, g);
} }
this->group_sb->ScrollTowards(id_g); this->group_sb->ScrollTowards(id_g);