From 12523455c02736b605e5055b78536acf6a345c6d Mon Sep 17 00:00:00 2001 From: roflmuffin Date: Wed, 27 Dec 2023 15:30:57 +1000 Subject: [PATCH] fix: bad max player count --- managed/CounterStrikeSharp.API/Utilities.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/managed/CounterStrikeSharp.API/Utilities.cs b/managed/CounterStrikeSharp.API/Utilities.cs index 6631cdddc..0443660bd 100644 --- a/managed/CounterStrikeSharp.API/Utilities.cs +++ b/managed/CounterStrikeSharp.API/Utilities.cs @@ -136,7 +136,7 @@ public static List GetPlayers() { List players = new(); - for (int i = 0; i <= Server.MaxPlayers; i++) + for (int i = 0; i < Server.MaxPlayers; i++) { var controller = GetPlayerFromSlot(i);