From ac8a8ce72400b5e091e315a5e84e887d6e0db136 Mon Sep 17 00:00:00 2001 From: "[-=KILL MAN=-]" Date: Thu, 4 Apr 2024 04:26:58 +0300 Subject: [PATCH] Update main.cpp --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index c2f62d0..4f4295d 100644 --- a/main.cpp +++ b/main.cpp @@ -195,7 +195,7 @@ DECL_HOOKb(CLEO_OnOpcodeCall, void *storageItem, uint16_t opcode) void* g_pForceInterrupt = NULL; DECL_HOOK(int8_t, ProcessOneCommand, void* handle) { - for(int i = SCRIPTS_LOG_COUNT-2; i > 0; --i) + for(int i = SCRIPTS_LOG_COUNT-2; i >= 0; --i) { lastScriptHandle[i + 1] = lastScriptHandle[i]; lastScriptPC[i + 1] = lastScriptPC[i];