Updated LUAh_GameQuit

This commit is contained in:
Zachary McAlpin 2020-06-05 13:18:22 -05:00
parent 7b779fa89b
commit ca66c5e7ee
1 changed files with 1 additions and 2 deletions

View File

@ -1783,8 +1783,7 @@ void LUAh_GameQuit(void)
if (hookp->type != hook_GameQuit)
continue;
lua_pushfstring(gL, FMT_HOOKID, hookp->id);
lua_gettable(gL, LUA_REGISTRYINDEX);
PushHook(gL, hookp);
if (lua_pcall(gL, 0, 0, 0)) {
if (!hookp->error || cv_debug & DBG_LUA)
CONS_Alert(CONS_WARNING,"%s\n",lua_tostring(gL, -1));