mirror of https://github.com/ppy/osu
Only add valid hitobjects.
This commit is contained in:
parent
74c655ebfc
commit
b72e9221fd
|
@ -270,7 +270,9 @@ protected override Beatmap ParseFile(TextReader stream)
|
|||
handleColours(beatmap, key, val);
|
||||
break;
|
||||
case Section.HitObjects:
|
||||
beatmap.HitObjects.Add(HitObject.Parse(beatmap.BeatmapInfo.Mode, val));
|
||||
var h = HitObject.Parse(beatmap.BeatmapInfo.Mode, val);
|
||||
if (h != null)
|
||||
beatmap.HitObjects.Add(h);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue