Fixes bug in loading of MQ Dungeons. (#1859)

This commit is contained in:
Christopher Leggett 2022-10-26 14:41:22 -04:00 committed by GitHub
parent f860d57c8c
commit 4adfb93b48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -197,7 +197,7 @@ void SaveManager::LoadRandomizerVersion2() {
SaveManager::Instance->LoadData("masterQuestDungeonCount", gSaveContext.mqDungeonCount, (uint8_t)0); SaveManager::Instance->LoadData("masterQuestDungeonCount", gSaveContext.mqDungeonCount, (uint8_t)0);
OTRGlobals::Instance->gRandomizer->masterQuestDungeons.clear(); 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; uint16_t scene;
SaveManager::Instance->LoadData("", scene); SaveManager::Instance->LoadData("", scene);
randomizer->masterQuestDungeons.emplace(scene); randomizer->masterQuestDungeons.emplace(scene);