engine: server: fix out of bounds write in SV_FindTouchedLeafs
This commit is contained in:
parent
1510cb458f
commit
ca9a3f0491
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ static void SV_FindTouchedLeafs( edict_t *ent, model_t *mod, mnode_t *node, int
|
||||||
// add an efrag if the node is a leaf
|
// add an efrag if the node is a leaf
|
||||||
if( node->contents < 0 )
|
if( node->contents < 0 )
|
||||||
{
|
{
|
||||||
if( ent->num_leafs > MAX_ENT_LEAFS( FBitSet( mod->flags, MODEL_QBSP2 )))
|
if( ent->num_leafs >= MAX_ENT_LEAFS( FBitSet( mod->flags, MODEL_QBSP2 )))
|
||||||
{
|
{
|
||||||
// continue counting leafs,
|
// continue counting leafs,
|
||||||
// so we know how many it's overrun
|
// so we know how many it's overrun
|
||||||
|
|
Loading…
Add table
Reference in a new issue