Browse Source

Merge pull request #44 from AnnulusGames/fix-popuntil

Fix: LuaStack.PopUntil
Annulus Games 1 year ago
parent
commit
bfd61e590c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Lua/Runtime/LuaStack.cs

+ 1 - 1
src/Lua/Runtime/LuaStack.cs

@@ -66,7 +66,7 @@ public class LuaStack(int initialSize = 256)
         }
         else
         {
-            array.AsSpan(newSize - 1).Clear();
+            array.AsSpan(newSize).Clear();
         }
         top = newSize;
     }