From 6a9aac65693ebc2c457f29ad4b91ffc1626fa432 Mon Sep 17 00:00:00 2001 From: dacctal Date: Tue, 23 Jun 2026 17:30:30 +0000 Subject: fixed some local install bugs --- src/lua_state.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lua_state.c b/src/lua_state.c index e440ea0..a60fb7f 100644 --- a/src/lua_state.c +++ b/src/lua_state.c @@ -263,7 +263,7 @@ bool target_loop_install(lua_State *L, const char* lua_file, const char *target) ); } } - lua_pop(L, 1); + lua_pop(L, 2); return true; } @@ -299,10 +299,10 @@ bool target_loop_uninstall(lua_State *L, const char *lua_file, const char *targe "%s %s: 'targets.%s.uninstall' failed: %s\n", print_error, lua_file, target, lua_tostring(L, -1) ); - lua_pop(L, 1); + lua_pop(L, 2); return false; } - lua_pop(L, 1); + lua_pop(L, 2); return true; } -- cgit v1.2.3