From 5537bb29b69e51b684cc9ad052ac01afce2d77ef Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 28 Jul 2005 00:45:41 +0000 Subject: [PATCH] And... with correct spelling. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1166 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/r_part.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)