From 79e04d3a65193077c43db03773b764fe9a3359b0 Mon Sep 17 00:00:00 2001 From: nhkeni Date: Sun, 1 May 2022 21:09:59 -0400 Subject: [PATCH] nhlua.c: bugfix - remove the handler after calling lua_pcall() --- src/nhlua.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nhlua.c b/src/nhlua.c index a28ce2c43..ea2ab842a 100644 --- a/src/nhlua.c +++ b/src/nhlua.c @@ -1463,6 +1463,7 @@ nhl_pcall(lua_State *L, int nargs, int nresults){ #endif rv = lua_pcall(L, nargs, nresults, 1); + lua_remove(L, 1); // remove handler #ifdef NHL_SANDBOX if(nud