diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-04 17:48:14 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-04 17:48:14 +0200 |
commit | b6d344fe7991b525958a5825fbd22d7c529d21cc (patch) | |
tree | 1cf8b728870d717054bbd05c58b826ad09d0a211 /src/compat.cpp | |
parent | 6d90af6ab9ccdfb2f20fb73fc2d6400c23521c0a (diff) | |
download | lanes-b6d344fe7991b525958a5825fbd22d7c529d21cc.tar.gz lanes-b6d344fe7991b525958a5825fbd22d7c529d21cc.tar.bz2 lanes-b6d344fe7991b525958a5825fbd22d7c529d21cc.zip |
lua_absindex → luaG_absindex for inlining
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 */ |