Browse Source

Fix ServerActivate check for clients (#288)

fix-cwd-path
Roman Chistokhodov 2 years ago committed by GitHub
parent
commit
25ba2b4e5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dlls/client.cpp

2
dlls/client.cpp

@ -734,7 +734,7 @@ void ServerActivate( edict_t *pEdictList, int edictCount, int clientMax ) @@ -734,7 +734,7 @@ void ServerActivate( edict_t *pEdictList, int edictCount, int clientMax )
continue;
// Clients aren't necessarily initialized until ClientPutInServer()
if( i < clientMax || !pEdictList[i].pvPrivateData )
if( (i > 0 && i <= clientMax) || !pEdictList[i].pvPrivateData )
continue;
pClass = CBaseEntity::Instance( &pEdictList[i] );

Loading…
Cancel
Save