Fix taiko weird difficulty multiplier failing on double convert

This commit is contained in:
Dean Herbert
2021-10-06 15:10:42 +09:00
parent b339c149d8
commit 0ab8dcc2a0
3 changed files with 43 additions and 21 deletions

View File

@ -28,7 +28,7 @@ namespace osu.Game.Beatmaps
difficulty = value;
if (beatmapInfo != null)
beatmapInfo.BaseDifficulty = new BeatmapDifficulty(difficulty);
beatmapInfo.BaseDifficulty = difficulty.Clone();
}
}
@ -41,8 +41,8 @@ namespace osu.Game.Beatmaps
{
beatmapInfo = value;
if (beatmapInfo != null)
Difficulty = new BeatmapDifficulty(beatmapInfo.BaseDifficulty);
if (beatmapInfo?.BaseDifficulty != null)
Difficulty = beatmapInfo.BaseDifficulty.Clone();
}
}