From c1788d07ab1331724c6907d5cc5c095eb8574d34 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 ae171c623..4cf0e413f 100644 --- a/src/lua_infolib.c +++ b/src/lua_infolib.c @@ -711,6 +711,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;