Fix suspicion crash on forcing 0 players readied
This commit is contained in:
@@ -176,7 +176,7 @@ namespace Content.Shared
|
||||
public TimeSpan RoundDuration;
|
||||
|
||||
|
||||
public uint PlayerCount;
|
||||
public int PlayerCount;
|
||||
|
||||
public List<RoundEndPlayerInfo> AllPlayersEndInfo;
|
||||
|
||||
@@ -189,9 +189,9 @@ namespace Content.Shared
|
||||
var seconds = buffer.ReadInt32();
|
||||
RoundDuration = new TimeSpan(hours, mins, seconds);
|
||||
|
||||
PlayerCount = buffer.ReadUInt32();
|
||||
PlayerCount = buffer.ReadInt32();
|
||||
AllPlayersEndInfo = new List<RoundEndPlayerInfo>();
|
||||
for(var i = 0; i < PlayerCount + 1; i++)
|
||||
for(var i = 0; i < PlayerCount; i++)
|
||||
{
|
||||
var readPlayerData = new RoundEndPlayerInfo
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user