diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs index a4afc4c..cefaed4 100644 --- a/Assets/Scripts/GameManager.cs +++ b/Assets/Scripts/GameManager.cs @@ -349,9 +349,9 @@ private void CheckIfIAmTheFirst(List players) if (players.Count > 1) { - IOrderedEnumerable sortedList = players.OrderBy(x => x.creationDate); + List sortedList = players.OrderBy(x => x.creationDate).ToList(); - if (sortedList.Last().id == currentPlayer.id) + if (sortedList[0].id == currentPlayer.id) { isFirst = true; }