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 break
end end
info.func = tostring(info.func) info.func = tostring(info.func)
info.variables = variables(level) info.variables = variables(stacklevel)
stack[stacklevel - 1] = info stack[stacklevel - 1] = info
stacklevel = stacklevel + 1 stacklevel = stacklevel + 1
end end