Let's call LUAh_GameQuit in D_QuitNetGame since that function is still called outside of netgames

However, the D_QuitNetGame function returns early if you are not in a netgame.
This commit is contained in:
Zachary McAlpin 2020-03-12 12:45:41 -05:00
parent 9bb2aa262e
commit 15aae435db

View file

@ -3188,6 +3188,10 @@ static inline void SV_GenContext(void)
// //
void D_QuitNetGame(void) void D_QuitNetGame(void)
{ {
#ifdef HAVE_BLUA
LUAh_GameQuit();
#endif
if (!netgame || !netbuffer) if (!netgame || !netbuffer)
return; return;