actually check that the entities match before returning the overridden beam

This commit is contained in:
Bill Currie 2002-09-09 15:56:29 +00:00
parent cc6c82007c
commit 82b2f30a20

View file

@ -193,6 +193,7 @@ CL_AllocBeam (int ent)
// override any beam with the same entity
for (i = 0, b = cl_beams; i < MAX_BEAMS; i++, b++)
if (b->entity == ent)
return b;
// find a free beam
for (i = 0, b = cl_beams; i < MAX_BEAMS; i++, b++)