Fix OsuLegacyDecoder's parser being NULL if no ruleset was specified

This commit is contained in:
MrTheMake 2017-08-02 16:05:09 +02:00
parent d72a479d9d
commit 79724e8018
1 changed files with 5 additions and 0 deletions

View File

@ -456,6 +456,11 @@ protected override void ParseFile(StreamReader stream, Beatmap beatmap)
handleColours(beatmap, line, ref hasCustomColours);
break;
case Section.HitObjects:
// If the ruleset wasn't specified, assume the osu!standard ruleset.
if(parser == null)
parser = new Rulesets.Objects.Legacy.Osu.ConvertHitObjectParser();
var obj = parser.Parse(line);
if (obj != null)