Try to fix potential crash.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6094 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-10-31 18:20:38 +00:00
parent 9051c590e2
commit d2937174bf
1 changed files with 1 additions and 0 deletions

View File

@ -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++)