# HG changeset patch # User Matthew Wild # Date 1326469596 0 # Node ID 41c4252526bd7b732b093570a1abf0fb3352294e # Parent b0574fc78a0a315e23c24bda588b502923c28260 util.debug: Adjust level within get_locals_table() to account for the additional depth of this function itself diff -r b0574fc78a0a -r 41c4252526bd util/debug.lua --- a/util/debug.lua Fri Jan 06 21:45:33 2012 +0000 +++ b/util/debug.lua Fri Jan 13 15:46:36 2012 +0000 @@ -9,6 +9,7 @@ }; local function get_locals_table(level) + level = level + 1; -- Skip this function itself local locals = {}; for local_num = 1, math.huge do local name, value = debug.getlocal(level, local_num);