Browse Source

Merge pull request #40 from AnnulusGames/fix-tostring-metamethod

Fix: `__tostring` is not working
Annulus Games 1 year ago
parent
commit
e158c7ec60
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
             return func.InvokeAsync(context with
             {
             {
                 ArgumentCount = 1,
                 ArgumentCount = 1,
-                FrameBase = context.Thread.Stack.Count,
+                FrameBase = context.Thread.Stack.Count - 1,
             }, buffer, cancellationToken);
             }, buffer, cancellationToken);
         }
         }
         else
         else