From 6c5c734ff1d07188812c75ad98bbb9e40fd396c1 Mon Sep 17 00:00:00 2001 From: Bang Sunghwan Date: Sun, 8 Oct 2017 09:42:09 +0900 Subject: [PATCH] Trim end of line Fix ArgumentOutOfRangeException when parsing http://osu.ppy.sh/osu/1004136 --- osu.Game/Beatmaps/Formats/OsuLegacyDecoder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Beatmaps/Formats/OsuLegacyDecoder.cs b/osu.Game/Beatmaps/Formats/OsuLegacyDecoder.cs index 21fee0f465..b4d5e8f13a 100644 --- a/osu.Game/Beatmaps/Formats/OsuLegacyDecoder.cs +++ b/osu.Game/Beatmaps/Formats/OsuLegacyDecoder.cs @@ -611,7 +611,7 @@ namespace osu.Game.Beatmaps.Formats CommandTimelineGroup timelineGroup = null; string line; - while ((line = stream.ReadLine()) != null) + while ((line = stream.ReadLine()?.TrimEnd()) != null) { if (string.IsNullOrEmpty(line)) continue;