SelfMute: Only loop through the max number of slots

...instead of MAXPLAYERS, which is statically 65.
This commit is contained in:
Pan32 2020-09-30 02:05:34 +01:00
parent 23b9a6ae67
commit 3196094ae3

View File

@ -129,7 +129,7 @@ public void OnLibraryRemoved(const char[] name) { OnLibrary(name, false); }
public void OnClientPutInServer(int client)
{
g_SpecialMutes[client] = MUTE_NONE;
for(int i = 1; i < MAXPLAYERS; i++)
for(int i = 1; i < MaxClients; i++)
{
SetIgnored(client, i, false);
SetExempt(client, i, false);
@ -147,7 +147,7 @@ public void OnClientPutInServer(int client)
public void OnClientDisconnect(int client)
{
g_SpecialMutes[client] = MUTE_NONE;
for(int i = 1; i < MAXPLAYERS; i++)
for(int i = 1; i < MaxClients; i++)
{
SetIgnored(client, i, false);
SetExempt(client, i, false);