Skip to content

Commit 78ede70

Browse files
authored
Fix loop condition to include MaxClients
1 parent 8a5b4c4 commit 78ede70

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

addons/sourcemod/scripting/TriggerWatcher.sp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void OnPluginStart()
8282
if (!g_bLate)
8383
return;
8484

85-
for (int i = 1; i < MaxClients; i++)
85+
for (int i = 1; i <= MaxClients; i++)
8686
{
8787
if (!IsClientConnected(i) || IsFakeClient(i) || !AreClientCookiesCached(i))
8888
continue;
@@ -437,4 +437,4 @@ void NotifyModeChat(int client, NotifyMode mode, const char[] detailPhrase)
437437
char detail[64];
438438
FormatEx(detail, sizeof(detail), "%T", detailPhrase, client, label);
439439
CPrintToChat(client, "{red}%s {lightgreen}%s", TW_TAG, detail);
440-
}
440+
}

0 commit comments

Comments
 (0)