Skip to content

Commit

Permalink
squash
Browse files Browse the repository at this point in the history
  • Loading branch information
nuoun committed Jul 30, 2024
1 parent 991f8ad commit 50ebf02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/LuaSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ bool Surge::LuaSupport::setSurgeFunctionEnvironment(lua_State *L)
int stacktest = lua_gettop(L);
lua_getglobal(L, "global");
int stacktest2 = lua_gettop(L);
if (lua_type(L, -1) == LUA_TTABLE && lua_type(L, -2) == LUA_TTABLE && (stacktest2 - stacktest == 1)) {
if (lua_type(L, -1) == LUA_TTABLE && lua_type(L, -2) == LUA_TTABLE &&
(stacktest2 - stacktest == 1))
{
lua_pushnil(L);
while (lua_next(L, -2))
{
Expand Down

0 comments on commit 50ebf02

Please sign in to comment.