mirror of https://github.com/ppy/osu
Allow null values for `ReadCurrentFromDifficulty`
As long as this isn't a constructor parameter it feels best to gracefully handle omission. Realistically having it in the ctor is the best move, but it doesn't feel great in line with the other parameters passed in via object initalisers.
This commit is contained in:
parent
90326f8864
commit
f9cd7f10d8
|
@ -72,7 +72,7 @@ private void updateFromDifficulty()
|
|||
if (difficulty == null)
|
||||
return;
|
||||
|
||||
if (Current.Value == null)
|
||||
if (Current.Value == null && difficultyBindable.ReadCurrentFromDifficulty != null)
|
||||
{
|
||||
// ensure the beatmap's value is not transferred as a user override.
|
||||
isInternalChange = true;
|
||||
|
|
Loading…
Reference in New Issue