1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 10:22:56 +08:00

palette can not be null in DifficultyColouredContainer.cs

This commit is contained in:
Miterosan 2017-11-07 23:16:19 +01:00
parent 36ce287b88
commit a15ab785f2

View File

@ -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.Containers;
using osu.Game.Graphics;
@ -23,6 +24,9 @@ namespace osu.Game.Beatmaps.Drawables
[BackgroundDependencyLoader]
private void load(OsuColour palette)
{
if (palette == null)
throw new ArgumentNullException(nameof(palette));
this.palette = palette;
AccentColour = getColour(beatmap);
}