mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 10:52:55 +08: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);
|
handleColours(beatmap, line, ref hasCustomColours);
|
||||||
break;
|
break;
|
||||||
case Section.HitObjects:
|
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);
|
var obj = parser.Parse(line);
|
||||||
|
|
||||||
if (obj != null)
|
if (obj != null)
|
||||||
|
Loading…
Reference in New Issue
Block a user