Exclude the 'All' tab when searching for scenery group

This commit is contained in:
ζeh Matt 2023-06-17 16:40:57 +03:00
parent ed875a1273
commit ffa65cea0e
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
1 changed files with 5 additions and 0 deletions

View File

@ -1108,6 +1108,11 @@ private:
for (size_t i = 0; i < _tabEntries.size(); 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))
{
return i;