Bläddra i källkod

Fix: OP_FORLOOP (close upvalues)

AnnulusGames 1 år sedan
förälder
incheckning
b0038fa8d7
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      src/Lua/Runtime/LuaVirtualMachine.cs

+ 1 - 0
src/Lua/Runtime/LuaVirtualMachine.cs

@@ -761,6 +761,7 @@ public static partial class LuaVirtualMachine
                     }
                 case OpCode.ForLoop:
                     {
+                        state.CloseUpValues(thread, RA);
                         stack.EnsureCapacity(RA + 4);
 
                         // TODO: add error message