mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
beatmap can not be null in DifficultyIcon.cs
This commit is contained in:
parent
a8acea9cdb
commit
289a1346fc
@ -1,6 +1,7 @@
|
||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Graphics;
|
||||
@ -15,6 +16,9 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
|
||||
public DifficultyIcon(BeatmapInfo beatmap) : base(beatmap)
|
||||
{
|
||||
if (beatmap == null)
|
||||
throw new ArgumentNullException(nameof(beatmap));
|
||||
|
||||
this.beatmap = beatmap;
|
||||
Size = new Vector2(20);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user