From 98ba97820a2f000d0bef849d590bc9ea781f9363 Mon Sep 17 00:00:00 2001 From: s1lent Date: Fri, 5 May 2017 00:23:59 +0700 Subject: [PATCH] HLTV: Fix crash the client on the connection to master server. --- rehlds/HLTV/Proxy/src/Proxy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rehlds/HLTV/Proxy/src/Proxy.cpp b/rehlds/HLTV/Proxy/src/Proxy.cpp index 617a104..8c74eea 100644 --- a/rehlds/HLTV/Proxy/src/Proxy.cpp +++ b/rehlds/HLTV/Proxy/src/Proxy.cpp @@ -832,7 +832,8 @@ void Proxy::Broadcast(byte *data, int length, int groupType, bool isReliable) IClient *client = (IClient *)m_Clients.GetFirst(); while (client) { - if (((groupType & GROUP_CLIENT) && client->GetClientType() == TYPE_CLIENT) + if (client->IsActive() + && ((groupType & GROUP_CLIENT) && client->GetClientType() == TYPE_CLIENT) || ((groupType & GROUP_PROXY) && client->GetClientType() == TYPE_PROXY) || ((groupType & GROUP_VOICE) && client->IsHearingVoices()) || ((groupType & GROUP_CHAT) && client->HasChatEnabled()))