mirror of
https://github.com/ppy/osu
synced 2024-12-15 11:25:29 +00:00
Fix OsuLegacyDecoder's parser being NULL if no ruleset was specified
This commit is contained in:
parent
d72a479d9d
commit
79724e8018
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user