1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00

Fix load/save of research in editor

This commit is contained in:
Ted John
2021-05-04 21:05:40 +01:00
parent 410c94188f
commit a3c9a513af
2 changed files with 6 additions and 2 deletions

View File

@@ -358,8 +358,6 @@ namespace Editor
gGuestChangeModifier = 0;
if (fromSave)
{
research_populate_list_random();
if (gParkFlags & PARK_FLAGS_NO_MONEY)
{
gParkFlags |= PARK_FLAGS_NO_MONEY_SCENARIO;

View File

@@ -394,6 +394,12 @@ void research_reset_current_item()
*/
static void research_insert_unresearched(ResearchItem&& item)
{
// First check to make sure that entry is not already accounted for
if (item.Exists())
{
return;
}
gResearchItemsUninvented.push_back(std::move(item));
}