- fix a typo

This commit is contained in:
Magnus Norddahl 2018-11-10 19:56:54 +01:00
parent 173fe94736
commit a7ef178284

View file

@ -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);
}