From d2937174bf3d213776f9259779ec4557b7a0aae3 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 31 Oct 2021 18:20:38 +0000 Subject: [PATCH] Try to fix potential crash. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6094 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/pr_cmds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/server/pr_cmds.c b/engine/server/pr_cmds.c index 3552470aa..6679c2c43 100644 --- a/engine/server/pr_cmds.c +++ b/engine/server/pr_cmds.c @@ -830,6 +830,7 @@ void PR_Deinit(void) if (svprogfuncs->Shutdown) svprogfuncs->Shutdown(svprogfuncs); sv.world.progs = NULL; + memset(&gfuncs, 0, sizeof(gfuncs)); svprogfuncs=NULL; for (i = 0; i < sv.maxlightstyles; i++)