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:
parent
d3b9818f25
commit
70c3d27465
1 changed files with 4 additions and 2 deletions
|
@ -454,8 +454,10 @@ void CL_ClearTEntParticleState (void)
|
|||
int i;
|
||||
for (i = 0; i < cl_beams_max; i++)
|
||||
{
|
||||
P_DelinkTrailstate(&(cl_beams[i].trailstate));
|
||||
P_DelinkTrailstate(&(cl_beams[i].emitstate));
|
||||
if (cl_beams[i].trailstate)
|
||||
P_DelinkTrailstate(&(cl_beams[i].trailstate));
|
||||
if (cl_beams[i].emitstate)
|
||||
P_DelinkTrailstate(&(cl_beams[i].emitstate));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue