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:
Spoike 2020-02-16 19:13:15 +00:00
parent c4cc904f14
commit e42558cd60

View file

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