From e66be83eb789cbdd3a4891aafd61ae34909bd876 Mon Sep 17 00:00:00 2001 From: Adam Bird Date: Thu, 5 Oct 2023 15:35:49 -0400 Subject: Fix quest type bleeding through saves (#3241) --- soh/src/code/z_sram.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'soh/src/code') diff --git a/soh/src/code/z_sram.c b/soh/src/code/z_sram.c index fd2b5ebd9..1612c0fdc 100644 --- a/soh/src/code/z_sram.c +++ b/soh/src/code/z_sram.c @@ -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(); } -- cgit v1.2.3