Skip to content

Commit

Permalink
Fix ServerActivate checking for player entities incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVanheer committed Jun 13, 2022
1 parent 70f3b23 commit 66fb780
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 @@ -704,7 +704,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 66fb780

Please sign in to comment.