diff --git a/osu.Game/Screens/Tournament/Drawings.cs b/osu.Game/Screens/Tournament/Drawings.cs index 41ff7713c8..90f88cfabc 100644 --- a/osu.Game/Screens/Tournament/Drawings.cs +++ b/osu.Game/Screens/Tournament/Drawings.cs @@ -300,10 +300,9 @@ namespace osu.Game.Screens.Tournament using (Stream stream = storage.GetStream(results_filename, FileAccess.Read, FileMode.Open)) using (StreamReader sr = new StreamReader(stream)) { - while (sr.Peek() != -1) + string line; + while ((line = sr.ReadLine()?.Trim()) != null) { - string line = sr.ReadLine().Trim(); - if (string.IsNullOrEmpty(line)) continue;