Fix quest type bleeding through saves (#3241)

This commit is contained in:
Adam Bird
2023-10-05 15:35:49 -04:00
committed by GitHub
parent 85432ce496
commit e66be83eb7
4 changed files with 14 additions and 7 deletions

View File

@@ -220,8 +220,9 @@ void Sram_InitSave(FileChooseContext* fileChooseCtx) {
gSaveContext.n64ddFlag = fileChooseCtx->n64ddFlag;
if (fileChooseCtx->questType[fileChooseCtx->buttonIndex] == 2 && strnlen(CVarGetString("gSpoilerLog", ""), 1) != 0) {
gSaveContext.questId = 2;
if (fileChooseCtx->questType[fileChooseCtx->buttonIndex] == QUEST_RANDOMIZER &&
strnlen(CVarGetString("gSpoilerLog", ""), 1) != 0) {
gSaveContext.questId = QUEST_RANDOMIZER;
Randomizer_InitSaveFile();
}