mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
panels can not be null in BeatmapSetHeader.cs
This commit is contained in:
@ -160,6 +160,9 @@ namespace osu.Game.Beatmaps.Drawables
|
|||||||
|
|
||||||
public void AddDifficultyIcons(IEnumerable<BeatmapPanel> panels)
|
public void AddDifficultyIcons(IEnumerable<BeatmapPanel> panels)
|
||||||
{
|
{
|
||||||
|
if (panels == null)
|
||||||
|
throw new ArgumentNullException(nameof(panels));
|
||||||
|
|
||||||
foreach (var p in panels)
|
foreach (var p in panels)
|
||||||
difficultyIcons.Add(new DifficultyIcon(p.Beatmap));
|
difficultyIcons.Add(new DifficultyIcon(p.Beatmap));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user