From d8f3bf2902e7bf8e71c0a76c7a721aed840669fd Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Fri, 11 Jun 2021 20:28:27 +0200 Subject: [PATCH] Fix debug.stack --- debug.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug.lua b/debug.lua index 546f058..e50749f 100644 --- a/debug.lua +++ b/debug.lua @@ -35,7 +35,7 @@ function stack(stacklevel) break end info.func = tostring(info.func) - info.variables = variables(level) + info.variables = variables(stacklevel) stack[stacklevel - 1] = info stacklevel = stacklevel + 1 end