summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorAdam Bird <Archez@users.noreply.github.com>2023-10-05 15:35:49 -0400
committerGitHub <noreply@github.com>2023-10-05 15:35:49 -0400
commite66be83eb789cbdd3a4891aafd61ae34909bd876 (patch)
treefb01736509c8f5b2f254549107d88e97d39b0091 /soh/src/code
parent85432ce496143e19fa4ac37b615c14acaeb192bc (diff)
Fix quest type bleeding through saves (#3241)
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_sram.c5
1 files changed, 3 insertions, 2 deletions
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();
}