From 66fb780ba45c417f3a5d65671346828849d7c45f Mon Sep 17 00:00:00 2001 From: Sam V Date: Mon, 13 Jun 2022 12:25:05 +0200 Subject: [PATCH] Fix ServerActivate checking for player entities incorrectly Resolves ValveSoftware/halflife#3282 --- dlls/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/client.cpp b/dlls/client.cpp index 19b816cc5..8756af2e9 100644 --- a/dlls/client.cpp +++ b/dlls/client.cpp @@ -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]);