foxygit / fake-08-xbox360 Log in
commit 81917f3f6a673364ca5fd8c14027a8d519656e11
Author:     jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Thu Mar 11 18:17:47 2021 -0700
Commit:     jtothebell <j.to.the.bell@gmail.com>
CommitDate: Thu Mar 11 18:17:47 2021 -0700

    Fix deli off by one  bug
---
 source/p8GlobalLuaFunctions.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/p8GlobalLuaFunctions.h b/source/p8GlobalLuaFunctions.h
index 015f2e4..f830d79 100644
--- a/source/p8GlobalLuaFunctions.h
+++ b/source/p8GlobalLuaFunctions.h
@@ -79,7 +79,7 @@ function deli(c,i)
         -- delete at i if specified, otherwise at the end
         i=i and mid(1,i\1,#c) or #c
         local v=c[i]
-        for j=i,#c-1 do c[j]=c[j+1] end
+        for j=i,#c do c[j]=c[j+1] end
         return v
     end
 end