Skip to content

Commit

Permalink
Fix ServerActivate check for clients (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Jul 21, 2022
1 parent 4e7d641 commit 25ba2b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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] );
Expand Down

0 comments on commit 25ba2b4

Please sign in to comment.