mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-13 05:51:19 +00:00
Fix buffer overflow in gc
This commit is contained in:
parent
3135c09e53
commit
40fb02d32f
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user