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:
commit
4ddd0ede7d
@ -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()))
|
||||
|
Loading…
Reference in New Issue
Block a user