Fix debug.stack

This commit is contained in:
Lars Mueller 2021-06-11 20:28:27 +02:00
parent a9c4e86b83
commit d8f3bf2902

@ -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