1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:07:52 +08:00

Merge pull request #1077 from MrTheMake/osulegacydecoder-parser

Fix OsuLegacyDecoder's parser being NULL if no ruleset was specified
This commit is contained in:
Dean Herbert 2017-08-03 16:36:01 +09:00 committed by GitHub
commit c86f23baea

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)