Throw lua error when attempting table access on a non-table value.

This commit is contained in:
James Roseborough
2007-11-29 01:11:51 +00:00
parent b493230edb
commit 14007944a1

View File

@@ -136,7 +136,7 @@ public class LValue {
return;
}
}
vm.pushnil();
vm.error( "attempt to index ? (a "+table.luaGetTypeName()+" value)", 2 );
}
/** Get the value as a LString