aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-10-09 09:31:44 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-10-09 09:31:44 +0200
commit2420247b341fd78ccfdf67f2f9975f0f3a883753 (patch)
tree03251e0e59111e7ebbc4464dd176b94a11da5105
parent16b5070c0cd56e10c5074eb9903dbc3ae4e15a61 (diff)
downloadlanes-2420247b341fd78ccfdf67f2f9975f0f3a883753.tar.gz
lanes-2420247b341fd78ccfdf67f2f9975f0f3a883753.tar.bz2
lanes-2420247b341fd78ccfdf67f2f9975f0f3a883753.zip
Minor code style fix
-rw-r--r--src/compat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compat.cpp b/src/compat.cpp
index 1f8eaf9..8d0bc19 100644
--- a/src/compat.cpp
+++ b/src/compat.cpp
@@ -48,9 +48,9 @@ LuaType luaG_getmodule(lua_State* const L_, std::string_view const& name_)
48int luaL_getsubtable(lua_State* const L_, StackIndex const idx_, char const* fname_) 48int luaL_getsubtable(lua_State* const L_, StackIndex const idx_, char const* fname_)
49{ 49{
50 lua_getfield(L_, idx_, fname_); 50 lua_getfield(L_, idx_, fname_);
51 if (lua_istable(L_, -1)) 51 if (lua_istable(L_, -1)) {
52 return 1; /* table already there */ 52 return 1; /* table already there */
53 else { 53 } else {
54 lua_pop(L_, 1); /* remove previous result */ 54 lua_pop(L_, 1); /* remove previous result */
55 StackIndex const _absidx{ luaG_absindex(L_, idx_) }; 55 StackIndex const _absidx{ luaG_absindex(L_, idx_) };
56 lua_newtable(L_); 56 lua_newtable(L_);