From ffa65cea0e31e07ef6465226ebd92a69a97ea82a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Sat, 17 Jun 2023 16:40:57 +0300 Subject: [PATCH] Exclude the 'All' tab when searching for scenery group --- src/openrct2-ui/windows/Scenery.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/openrct2-ui/windows/Scenery.cpp b/src/openrct2-ui/windows/Scenery.cpp index 92a4d47c1f..8b6d8f27ef 100644 --- a/src/openrct2-ui/windows/Scenery.cpp +++ b/src/openrct2-ui/windows/Scenery.cpp @@ -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;