Use cloned mods in one more place

This commit is contained in:
Dean Herbert 2021-10-06 21:30:30 +09:00
parent 433e7cd403
commit 9705c7b546
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ private void load(OsuColour colours, BeatmapDifficultyCache difficultyCache)
clonedMods = gameplayState.Mods.Select(m => m.DeepClone()).ToArray(); clonedMods = gameplayState.Mods.Select(m => m.DeepClone()).ToArray();
var gameplayWorkingBeatmap = new GameplayWorkingBeatmap(gameplayState.Beatmap); var gameplayWorkingBeatmap = new GameplayWorkingBeatmap(gameplayState.Beatmap);
difficultyCache.GetTimedDifficultyAttributesAsync(gameplayWorkingBeatmap, gameplayState.Ruleset, gameplayState.Mods.Select(m => m.DeepClone()).ToArray(), loadCancellationSource.Token) difficultyCache.GetTimedDifficultyAttributesAsync(gameplayWorkingBeatmap, gameplayState.Ruleset, clonedMods, loadCancellationSource.Token)
.ContinueWith(r => Schedule(() => .ContinueWith(r => Schedule(() =>
{ {
timedAttributes = r.Result; timedAttributes = r.Result;