From 9a518db8638d82cb2e2a2ab6fc1bfff8bba3d339 Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Fri, 14 Aug 2020 22:55:19 -0400 Subject: [PATCH] Fix hard-coded loop counter --- src/code_e92d0_len_5da0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/code_e92d0_len_5da0.c b/src/code_e92d0_len_5da0.c index e4351fa1cd..36bdfa8ab9 100644 --- a/src/code_e92d0_len_5da0.c +++ b/src/code_e92d0_len_5da0.c @@ -395,7 +395,7 @@ s32 func_802C73B0(script_context* script) { s32 func_802C73B8(script_context* script) { s32 i; - for (i = 0; i < 0x80; i++) { // TODO figure out what this represents + for (i = 0; i < ARRAY_COUNT(gCurrentScriptListPtr); i++) { if (script == get_script_by_index(i)) { break; }