Skip to content

Commit

Permalink
fix: ignore -1 in get players, fixes, #46
Browse files Browse the repository at this point in the history
  • Loading branch information
roflmuffin committed Nov 9, 2023
1 parent 0dc3581 commit cef9758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion managed/CounterStrikeSharp.API/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static List<CCSPlayerController> GetPlayers()
{
var controller = GetPlayerFromIndex(i);

if (!controller.IsValid || controller.UserId < 0)
if (!controller.IsValid || controller.UserId == -1)
continue;

players.Add(controller);
Expand Down

0 comments on commit cef9758

Please sign in to comment.