# HG changeset patch # User Matthew Wild # Date 1335626479 -3600 # Node ID 127de6eec433b944cb08b08e9037d2c1e2eecc56 # Parent 74ae0433f8dddbfddbb46f779add054f60acf9e3 util.debug: Add +1 to level when getting locals table, to account for current function diff -r 74ae0433f8dd -r 127de6eec433 util/debug.lua --- a/util/debug.lua Sat Apr 28 16:20:26 2012 +0100 +++ b/util/debug.lua Sat Apr 28 16:21:19 2012 +0100 @@ -97,7 +97,7 @@ levels[(level-start_level)+1] = { level = level; info = info; - locals = get_locals_table(level); + locals = get_locals_table(level+1); upvalues = get_upvalues_table(info.func); }; end