Only add valid hitobjects.

This commit is contained in:
Dean Herbert 2016-11-02 18:24:57 +09:00
parent 74c655ebfc
commit b72e9221fd
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}