From 4adfb93b482e46477760798a5bf0ce16cc29571f Mon Sep 17 00:00:00 2001 From: Christopher Leggett Date: Wed, 26 Oct 2022 14:41:22 -0400 Subject: [PATCH] Fixes bug in loading of MQ Dungeons. (#1859) --- soh/soh/SaveManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/soh/SaveManager.cpp b/soh/soh/SaveManager.cpp index f4cde541d..dbb224fa8 100644 --- a/soh/soh/SaveManager.cpp +++ b/soh/soh/SaveManager.cpp @@ -197,7 +197,7 @@ void SaveManager::LoadRandomizerVersion2() { SaveManager::Instance->LoadData("masterQuestDungeonCount", gSaveContext.mqDungeonCount, (uint8_t)0); OTRGlobals::Instance->gRandomizer->masterQuestDungeons.clear(); - SaveManager::Instance->LoadArray("masterQuestDungeons", randomizer->GetRandoSettingValue(RSK_MQ_DUNGEON_COUNT), [&](size_t i) { + SaveManager::Instance->LoadArray("masterQuestDungeons", gSaveContext.mqDungeonCount, [&](size_t i) { uint16_t scene; SaveManager::Instance->LoadData("", scene); randomizer->masterQuestDungeons.emplace(scene);