From 5e9d1d61f1f609d22e8e146aead3c3280f7d541c Mon Sep 17 00:00:00 2001 From: Garrett Cox Date: Thu, 25 Aug 2022 10:34:39 -0500 Subject: [PATCH] Fix minor thing in sram --- soh/src/code/z_sram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soh/src/code/z_sram.c b/soh/src/code/z_sram.c index f99df9cc1..b7c260a23 100644 --- a/soh/src/code/z_sram.c +++ b/soh/src/code/z_sram.c @@ -704,7 +704,7 @@ void Sram_InitSave(FileChooseContext* fileChooseCtx) { gSaveContext.n64ddFlag = 1; // Sets all rando flags to false - for (s32 i = 0; i < RAND_INF_MAX; i++) { + for (s32 i = 0; i < ARRAY_COUNT(gSaveContext.randomizerInf); i++) { gSaveContext.randomizerInf[i] = 0; }