Fix the bug where the wrong file/line# is reported on attempts to index nil.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user