Merge pull request #1109 from starfrost013/master

Fix potential memory corruption issue where cl_numparticles is 0 and CL_ClearParticles is called
This commit is contained in:
Yamagi 2024-06-08 18:32:43 +02:00 committed by GitHub
commit 2d2c6787bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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];