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

View File

@ -456,6 +456,11 @@ namespace osu.Game.Beatmaps.Formats
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)