Fix the bug where the wrong file/line# is reported on attempts to index nil.

This commit is contained in:
Ian Farmer
2008-01-17 00:36:20 +00:00
parent 08f4a02529
commit 32d5e9c15e

View File

@@ -47,7 +47,7 @@ public class LValue {
}
private void indexError(LuaState vm, LValue nontable) {
vm.error( "attempt to index ? (a "+nontable.luaGetTypeName()+" value)", 2 );
vm.error( "attempt to index ? (a "+nontable.luaGetTypeName()+" value)", 1 );
}
public String id() {