mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-20 19:02:34 +00:00
Updated LUAh_GameQuit
This commit is contained in:
parent
7b779fa89b
commit
ca66c5e7ee
1 changed files with 1 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue