1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Merge pull request #20406 from ZehMatt/fix-scenery-misc

Exclude the 'All' tab when searching for scenery group
This commit is contained in:
Matthias Moninger
2023-06-18 03:32:59 +03:00
committed by GitHub

View File

@@ -1108,6 +1108,11 @@ private:
for (size_t i = 0; i < _tabEntries.size(); i++) for (size_t i = 0; i < _tabEntries.size(); i++)
{ {
const auto& tabInfo = _tabEntries[i]; const auto& tabInfo = _tabEntries[i];
if (tabInfo.IsAll())
{
// The scenery will be always added here so exclude this one.
continue;
}
if (tabInfo.Contains(scenery)) if (tabInfo.Contains(scenery))
{ {
return i; return i;