diff --git a/engine/client/r_part.c b/engine/client/r_part.c index 8175fdf02..5a52ccbbc 100644 --- a/engine/client/r_part.c +++ b/engine/client/r_part.c @@ -2495,7 +2495,7 @@ int P_ParticleTrail (vec3_t startpos, vec3_t end, int type, trailstate_t **tsk) float stop; float tdegree = 2*M_PI/256; /* MSVC whine */ - if (typenum < 0 || typenum >= numparticletypes) + if (type < 0 || type >= numparticletypes) return 1; //bad value if (!ptype->loaded)