1
0
Fork 0
forked from fte/fteqw

fix a potential crash.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4706 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-07-01 07:05:16 +00:00
parent d3b9818f25
commit 70c3d27465

View file

@ -454,8 +454,10 @@ void CL_ClearTEntParticleState (void)
int i; int i;
for (i = 0; i < cl_beams_max; i++) for (i = 0; i < cl_beams_max; i++)
{ {
P_DelinkTrailstate(&(cl_beams[i].trailstate)); if (cl_beams[i].trailstate)
P_DelinkTrailstate(&(cl_beams[i].emitstate)); P_DelinkTrailstate(&(cl_beams[i].trailstate));
if (cl_beams[i].emitstate)
P_DelinkTrailstate(&(cl_beams[i].emitstate));
} }
} }