Browse Source

fix: concat null error

Akeit0 7 months ago
parent
commit
e36d03c06e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Lua/Runtime/LuaVirtualMachine.cs

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

@@ -886,7 +886,7 @@ public static partial class LuaVirtualMachine
         var stack = context.Stack;
         var stack = context.Stack;
         var b = instruction.B;
         var b = instruction.B;
         var c = instruction.C;
         var c = instruction.C;
-        stack.NotifyTop(context.FrameBase + c + 1);
+        stack.SetTop(context.FrameBase + c + 1);
         var a = instruction.A;
         var a = instruction.A;
         var task = Concat(context, context.FrameBase + a, c - b + 1);
         var task = Concat(context, context.FrameBase + a, c - b + 1);
         if (task.IsCompleted)
         if (task.IsCompleted)