mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-01 01:25:38 +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:
commit
4ddd0ede7d
@ -832,7 +832,8 @@ void Proxy::Broadcast(byte *data, int length, int groupType, bool isReliable)
|
|||||||
IClient *client = (IClient *)m_Clients.GetFirst();
|
IClient *client = (IClient *)m_Clients.GetFirst();
|
||||||
while (client)
|
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_PROXY) && client->GetClientType() == TYPE_PROXY)
|
||||||
|| ((groupType & GROUP_VOICE) && client->IsHearingVoices())
|
|| ((groupType & GROUP_VOICE) && client->IsHearingVoices())
|
||||||
|| ((groupType & GROUP_CHAT) && client->HasChatEnabled()))
|
|| ((groupType & GROUP_CHAT) && client->HasChatEnabled()))
|
||||||
|
Loading…
Reference in New Issue
Block a user