2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-28 15:45:46 +03:00

Merge pull request #453 from s1lentq/fix_crash_hltv

HLTV: Fix crash the client on the connection to master server.
This commit is contained in:
s1lentq 2017-05-04 20:27:23 +03:00 committed by GitHub
commit 4ddd0ede7d

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