mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 13:32:54 +08:00
BeatmapSet and manager can not be null in BeatmapGroup.cs
This commit is contained in:
parent
1f620886cb
commit
080c3fabba
@ -72,6 +72,11 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
|
||||
public BeatmapGroup(BeatmapSetInfo beatmapSet, BeatmapManager manager)
|
||||
{
|
||||
if (beatmapSet == null)
|
||||
throw new ArgumentNullException(nameof(beatmapSet));
|
||||
if (manager == null)
|
||||
throw new ArgumentNullException(nameof(manager));
|
||||
|
||||
BeatmapSet = beatmapSet;
|
||||
WorkingBeatmap beatmap = manager.GetWorkingBeatmap(BeatmapSet.Beatmaps.FirstOrDefault());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user