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:
@@ -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;
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user