2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-28 06:28:06 +03:00

HLTV: Fix crash the client on the connection to master server.

This commit is contained in:
s1lent 2017-05-05 00:23:59 +07:00
parent 3d4e4ae8e8
commit 98ba97820a

View File

@ -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()))