Fix unresearched scenery groups showing

This commit is contained in:
duncanspumpkin committed 2021-10-06 17:11:08 +01:00
1 parent 9e227c1e2f
commit d7053784f2
1 file changed
+1 -1
+1 -1
View File
@@ -305,7 +305,7 @@ static void window_scenery_init(rct_window* w)
for (ObjectEntryIndex scenerySetIndex = 0; scenerySetIndex < maxTabs - 1; scenerySetIndex++)
{
const auto* sceneryGroupEntry = get_scenery_group_entry(scenerySetIndex);
if (sceneryGroupEntry != nullptr)
if (sceneryGroupEntry != nullptr && scenery_group_is_invented(scenerySetIndex))
{
SceneryTabInfo tabInfo;
tabInfo.SceneryGroupIndex = scenerySetIndex;