From b6e766ee44c7fb006b5ecc6a5eba48fd355323e7 Mon Sep 17 00:00:00 2001 From: Indev Date: Fri, 25 Oct 2024 23:15:52 +0300 Subject: [PATCH] Fix A_Lua not removing error handler from lua stack --- src/lua_infolib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lua_infolib.c b/src/lua_infolib.c index 46b451ccc..c220ad25b 100644 --- a/src/lua_infolib.c +++ b/src/lua_infolib.c @@ -111,6 +111,8 @@ static void A_Lua(mobj_t *actor) lua_pushinteger(gL, var2); LUA_Call(gL, 3, 0, 1); + lua_pop(gL, 1); // pop error handler + if (found) { --superstack;