fix a crash if packets arrive in unexpected orders.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5623 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
c4cc904f14
commit
e42558cd60
1 changed files with 1 additions and 1 deletions
|
@ -2269,7 +2269,7 @@ void CL_ParseTrailParticles(void)
|
|||
|
||||
effectindex = CL_TranslateParticleFromServer(effectindex);
|
||||
|
||||
if (entityindex && (unsigned int)entityindex < MAX_EDICTS)
|
||||
if (entityindex>0 && (unsigned int)entityindex < cl.maxlerpents)
|
||||
ts = &cl.lerpents[entityindex].trailstate;
|
||||
else
|
||||
ts = NULL;
|
||||
|
|
Loading…
Reference in a new issue