Let getfield() operation dereference fields on non-tables.

This commit is contained in:
James Roseborough
2008-07-09 20:25:58 +00:00
parent 63bf210fc4
commit b2879328f7

View File

@@ -1408,8 +1408,7 @@ public class LuaState extends Lua {
*
*/
public void getfield(int index, LString k) {
LTable t = totable(index);
pushlvalue( this.luaV_gettable(t, k) );
pushlvalue( this.luaV_gettable(topointer(index), k) );
}
/**