nhlua.c: bugfix - remove the handler after calling lua_pcall()

This commit is contained in:
nhkeni
2022-05-01 21:09:59 -04:00
parent a9559c01f4
commit 79e04d3a65
+1
View File
@@ -1463,6 +1463,7 @@ nhl_pcall(lua_State *L, int nargs, int nresults){
#endif #endif
rv = lua_pcall(L, nargs, nresults, 1); rv = lua_pcall(L, nargs, nresults, 1);
lua_remove(L, 1); // remove handler
#ifdef NHL_SANDBOX #ifdef NHL_SANDBOX
if(nud if(nud