diff --git a/src/hlua.c b/src/hlua.c index cc88bd1a5..b92914676 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -685,6 +685,9 @@ resume_execution: */ lua_sethook(lua->T, hlua_hook, LUA_MASKCOUNT, hlua_nb_instruction); + /* Remove all flags except the running flags. */ + lua->flags = HLUA_RUN; + /* Call the function. */ ret = lua_resume(lua->T, gL.T, lua->nargs); switch (ret) {