mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-01 17:12:15 +00:00
actually check that the entities match before returning the overridden beam
This commit is contained in:
parent
cc6c82007c
commit
82b2f30a20
1 changed files with 2 additions and 1 deletions
|
@ -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++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue