Possible fix to the recently-uncovered UQuake segfault.

This commit is contained in:
Jeff Teunissen 2000-02-10 09:07:26 +00:00
parent 866f2514d0
commit e0987665d8

View file

@ -282,18 +282,13 @@ void CL_ClearState (void)
S_StopAllSounds (true);
Con_DPrintf ("Clearing memory\n");
D_FlushCaches ();
Mod_ClearAll ();
if (host_hunklevel) // FIXME: check this...
Hunk_FreeToLowMark (host_hunklevel);
CL_ClearTEnts ();
#ifdef UQUAKE
#ifdef QUAKEWORLD
Host_ClearMemory ();
#elif UQUAKE
if (!sv.active)
Host_ClearMemory ();
#endif
CL_ClearTEnts ();
// wipe the entire cl structure
memset (&cl, 0, sizeof(cl));