1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 23:12:56 +08:00

beatmap can not be null in DifficultyColouredContainer.cs

This commit is contained in:
Miterosan 2017-11-07 23:17:45 +01:00
parent b2e49c1e71
commit 567cd6316c

View File

@ -43,6 +43,9 @@ namespace osu.Game.Beatmaps.Drawables
private DifficultyRating getDifficultyRating(BeatmapInfo beatmap)
{
if (beatmap == null)
throw new ArgumentNullException(nameof(beatmap));
var rating = beatmap.StarDifficulty;
if (rating < 1.5) return DifficultyRating.Easy;