diff options
Diffstat (limited to 'src/compat.cpp')
-rw-r--r-- | src/compat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat.cpp b/src/compat.cpp index 66fa3d5..5923d29 100644 --- a/src/compat.cpp +++ b/src/compat.cpp | |||
@@ -39,7 +39,7 @@ int luaL_getsubtable(lua_State* L_, int idx_, const char* fname_) | |||
39 | return 1; /* table already there */ | 39 | return 1; /* table already there */ |
40 | else { | 40 | else { |
41 | lua_pop(L_, 1); /* remove previous result */ | 41 | lua_pop(L_, 1); /* remove previous result */ |
42 | idx_ = lua_absindex(L_, idx_); | 42 | idx_ = luaG_absindex(L_, idx_); |
43 | lua_newtable(L_); | 43 | lua_newtable(L_); |
44 | lua_pushvalue(L_, -1); /* copy to be left at top */ | 44 | lua_pushvalue(L_, -1); /* copy to be left at top */ |
45 | lua_setfield(L_, idx_, fname_); /* assign new table to field */ | 45 | lua_setfield(L_, idx_, fname_); /* assign new table to field */ |