From a7ef1782849f338b28e71bc0fb7ca0372d76b103 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sat, 10 Nov 2018 19:56:54 +0100 Subject: [PATCH] - fix a typo --- src/scripting/vm/jit_flow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/vm/jit_flow.cpp b/src/scripting/vm/jit_flow.cpp index 6371be6c3..c0359f2ea 100644 --- a/src/scripting/vm/jit_flow.cpp +++ b/src/scripting/vm/jit_flow.cpp @@ -403,7 +403,7 @@ void JitCompiler::ThrowArrayOutOfBounds(VMScriptFunction *func, VMOP *line, int { try { - if (index > size) + if (index >= size) { ThrowAbortException(X_ARRAY_OUT_OF_BOUNDS, "Max.index = %u, current index = %u\n", size, index); }