diff --git a/distribution/changelog.txt b/distribution/changelog.txt index c27f103430..7ed3fd0e5d 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,6 +1,7 @@ 0.5.7 (in development) ------------------------------------------------------------------------ - Fix: [#16807] Error messages when trying to load regular JSON files as custom objects. +- Fix: [#18954] When researching Classic Mini Roller Coaster vehicles in Bumbly Beach, they all appear as new rides. - Fix: [#21030, #26981] Slow object loading and index building when using RCT Classic or running from a Flatpak. - Fix: [#24524] Some build types (like AppImage) lack information about their specific build. - Fix: [#27264] Headless server crashes when loading a recolourable terrain surface. diff --git a/src/openrct2/management/Research.cpp b/src/openrct2/management/Research.cpp index 5765dd003d..a73745f030 100644 --- a/src/openrct2/management/Research.cpp +++ b/src/openrct2/management/Research.cpp @@ -1099,20 +1099,12 @@ void ResearchDetermineFirstOfType() if (gameState.researchNextItem.has_value()) { ResearchUpdateFirstOfType(&gameState.researchNextItem.value()); - ResearchMarkRideTypeAsSeen(gameState.researchNextItem.value()); + // The next research item is (sometimes?) also present in gameState.researchItemsUninvented. To make things worse, + // the base ride entry or the entry index of researchNextItem may be corrupted. } for (auto& researchItem : gameState.researchItemsUninvented) { - // The next research item is (sometimes?) also present in gameState.researchItemsUninvented - if (gameState.researchNextItem.has_value() && !gameState.researchNextItem->isNull() - && researchItem.baseRideType == gameState.researchNextItem.value().baseRideType) - { - // Copy the "first of type" flag. - researchItem.flags = gameState.researchNextItem->flags; - continue; - } - ResearchUpdateFirstOfType(&researchItem); ResearchMarkRideTypeAsSeen(researchItem); }