From 3196094ae39f537e860b8e7c806e856d7904b0fc Mon Sep 17 00:00:00 2001 From: Pan32 Date: Wed, 30 Sep 2020 02:05:34 +0100 Subject: [PATCH] SelfMute: Only loop through the max number of slots ...instead of MAXPLAYERS, which is statically 65. --- SelfMute/scripting/SelfMute.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SelfMute/scripting/SelfMute.sp b/SelfMute/scripting/SelfMute.sp index 03cd9a5..6b1ab76 100644 --- a/SelfMute/scripting/SelfMute.sp +++ b/SelfMute/scripting/SelfMute.sp @@ -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);