mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +08:00
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 @@ namespace osu.Game.Rulesets.Mods
|
||||
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
Block a user