From 04d8e47579367c9878bdfd322af621bc2ea6db93 Mon Sep 17 00:00:00 2001 From: Beyley Thomas Date: Fri, 20 Sep 2024 20:33:00 -0700 Subject: [PATCH] Fix PlayersInPodCount --- .../Types/Matching/RoomAccessors/InMemoryRoomAccessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Refresh.GameServer/Types/Matching/RoomAccessors/InMemoryRoomAccessor.cs b/Refresh.GameServer/Types/Matching/RoomAccessors/InMemoryRoomAccessor.cs index eb29bef4..bd31b90d 100644 --- a/Refresh.GameServer/Types/Matching/RoomAccessors/InMemoryRoomAccessor.cs +++ b/Refresh.GameServer/Types/Matching/RoomAccessors/InMemoryRoomAccessor.cs @@ -91,7 +91,7 @@ public RoomStatistics GetStatistics() return new RoomStatistics { PlayerCount = (ushort)this._rooms.Sum(r => r.PlayerIds.Count), - PlayersInPodCount = (ushort)this._rooms.Count(r => r.LevelType == RoomSlotType.Pod), + PlayersInPodCount = (ushort)this._rooms.Where(r => r.LevelType == RoomSlotType.Pod).Sum(r => r.PlayerIds.Count), RoomCount = (ushort)this._rooms.Count, PerGame = perGame, PerPlatform = perPlatform,