mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-16 17:11:03 +00:00
Fix potential memory corruption issue where cl_numparticles is 0 and CL_ClearParticles is called.
This commit is contained in:
parent
7ffcd990c4
commit
e160691fec
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ int cl_numparticles = MAX_PARTICLES;
|
|||
void
|
||||
CL_ClearParticles(void)
|
||||
{
|
||||
if (cl_numparticles == 0)
|
||||
return;
|
||||
|
||||
int i;
|
||||
|
||||
free_particles = &particles[0];
|
||||
|
|
Loading…
Reference in a new issue