2
0
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:
Roman Chistokhodov 2022-07-21 17:23:22 +03:00 committed by GitHub
parent 4e7d64180b
commit 25ba2b4e5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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] );