From 15aae435db7e64089319b9b3cf4aceba342cd698 Mon Sep 17 00:00:00 2001 From: Zachary McAlpin Date: Thu, 12 Mar 2020 12:45:41 -0500 Subject: [PATCH] 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. --- src/d_clisrv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index ae9b91ec5..0cdf3fb73 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -3188,6 +3188,10 @@ static inline void SV_GenContext(void) // void D_QuitNetGame(void) { +#ifdef HAVE_BLUA + LUAh_GameQuit(); +#endif + if (!netgame || !netbuffer) return;