Let's just call LUAh_GameQuit in I_Quit anyways

This commit is contained in:
Zachary McAlpin 2020-03-15 00:39:46 -05:00
parent 0e56202d63
commit 7c65577336

View file

@ -190,6 +190,8 @@ static char returnWadPath[256];
#include "../byteptr.h"
#endif
#include "../lua_hook.h"
/** \brief The JoyReset function
\param JoySet Joystick info to reset
@ -2279,6 +2281,9 @@ void I_Quit(void)
if (quiting) goto death;
SDLforceUngrabMouse();
quiting = SDL_FALSE;
#ifdef HAVE_BLUA
LUAh_GameQuit();
#endif
M_SaveConfig(NULL); //save game config, cvars..
#ifndef NONET
D_SaveBan(); // save the ban list