mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-03-21 16:31:07 +00:00
Possible fix to the recently-uncovered UQuake segfault.
This commit is contained in:
parent
866f2514d0
commit
e0987665d8
1 changed files with 4 additions and 9 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue