Fix buffer overflow in gc

This commit is contained in:
mittorn 2018-08-06 04:34:41 +07:00
parent 3135c09e53
commit 40fb02d32f
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ void Ent_RunGC( bool common, bool enttools, const char *userid, const char *patt
ALERT( at_warning, "Running garbage collector\n" );
for( i = gpGlobals->maxClients; i < gpGlobals->maxEntities; i++, ent++ )
for( i = gpGlobals->maxClients + 5; i < gpGlobals->maxEntities; i++, ent++ )
{
const char *classname = STRING( ent->v.classname );