Fix off-by-one error.

This commit is contained in:
James Roseborough
2009-10-30 23:05:03 +00:00
parent 674ae6195e
commit 5d14dfcbe9

View File

@@ -138,7 +138,7 @@ public class LuaThread extends LuaValue implements Runnable {
}
public static final LuaFunction getCallstackFunction(int level) {
return level>=0 || level<running_thread.calls?
return level>0 || level<running_thread.calls?
running_thread.callstack[running_thread.calls-level-1]:
null;
}