diff --git a/src/code_e92d0_len_5da0.c b/src/code_e92d0_len_5da0.c index e4877f7ed1..0a924275ab 100644 --- a/src/code_e92d0_len_5da0.c +++ b/src/code_e92d0_len_5da0.c @@ -49,7 +49,6 @@ ApiStatus si_handle_break_loop(ScriptInstance* script) { ApiStatus si_handle_wait(ScriptInstance* script) { Bytecode* ptrReadPos = script->ptrReadPos; - s32 todo = 1; // val can be anything if (!script->blocked) { script->functionTemp[0] = get_variable(script, *ptrReadPos); @@ -57,6 +56,7 @@ ApiStatus si_handle_wait(ScriptInstance* script) { } if (script->functionTemp[0]) { + s32 todo = 1; // val can be anything if (todo) { script->functionTemp[0] -= 1; } @@ -67,7 +67,6 @@ ApiStatus si_handle_wait(ScriptInstance* script) { ApiStatus si_handle_wait_seconds(ScriptInstance* script) { Bytecode* ptrReadPos = script->ptrReadPos; - s32 todo = 1; // val can be anything if (!script->blocked) { script->functionTemp[0] = get_float_variable(script, *ptrReadPos) * 30.0f + 0.5; @@ -75,6 +74,7 @@ ApiStatus si_handle_wait_seconds(ScriptInstance* script) { } if (script->functionTemp[0]) { + s32 todo = 1; // val can be anything if (todo) { script->functionTemp[0] -= 1; }