forked from rosebudai/OpenRCT2-Web
This commit is contained in:
1 parent
52a55c3e8d
commit
aca4770604
2 files changed
+3
-10
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user