Skip to content

Commit

Permalink
Fix PlayersInPodCount (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden authored Sep 21, 2024
2 parents 7d1cf38 + 04d8e47 commit f3b91ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f3b91ba

Please sign in to comment.