mirror of
https://github.com/ppy/osu
synced 2024-12-15 03:16:17 +00:00
Trim end of line
Fix ArgumentOutOfRangeException when parsing http://osu.ppy.sh/osu/1004136
This commit is contained in:
parent
c22e1520a0
commit
6c5c734ff1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user