Fix potential memory corruption issue where cl_numparticles is 0 and CL_ClearParticles is called.

This commit is contained in:
starfrost013 2024-05-29 15:41:12 +01:00
parent 7ffcd990c4
commit e160691fec

View file

@ -33,6 +33,9 @@ int cl_numparticles = MAX_PARTICLES;
void
CL_ClearParticles(void)
{
if (cl_numparticles == 0)
return;
int i;
free_particles = &particles[0];