Browse Source

Fix: __tostring is not working

AnnulusGames 1 year ago
parent
commit
79f7e08708
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Lua/LuaValue.cs

+ 1 - 1
src/Lua/LuaValue.cs

@@ -430,7 +430,7 @@ public readonly struct LuaValue : IEquatable<LuaValue>
             return func.InvokeAsync(context with
             {
                 ArgumentCount = 1,
-                FrameBase = context.Thread.Stack.Count,
+                FrameBase = context.Thread.Stack.Count - 1,
             }, buffer, cancellationToken);
         }
         else