mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 01:47:45 +01:00
Fix ServerActivate check for clients (#288)
This commit is contained in:
parent
4e7d64180b
commit
25ba2b4e5f
@ -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…
Reference in New Issue
Block a user