mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 17:13:06 +08:00
Fix TestScenePlaySongSelect
failure due to detach clone depth
This commit is contained in:
parent
9e2ca583a3
commit
cd88ccab4f
@ -640,8 +640,9 @@ namespace osu.Game.Tests.Visual.SongSelect
|
|||||||
|
|
||||||
AddStep("Get filtered icon", () =>
|
AddStep("Get filtered icon", () =>
|
||||||
{
|
{
|
||||||
filteredBeatmap = songSelect.Carousel.SelectedBeatmapSet.Beatmaps.First(b => b.BPM < maxBPM);
|
var selectedSet = songSelect.Carousel.SelectedBeatmapSet;
|
||||||
int filteredBeatmapIndex = getBeatmapIndex(filteredBeatmap.BeatmapSet, filteredBeatmap);
|
filteredBeatmap = selectedSet.Beatmaps.First(b => b.BPM < maxBPM);
|
||||||
|
int filteredBeatmapIndex = getBeatmapIndex(selectedSet, filteredBeatmap);
|
||||||
filteredIcon = set.ChildrenOfType<FilterableDifficultyIcon>().ElementAt(filteredBeatmapIndex);
|
filteredIcon = set.ChildrenOfType<FilterableDifficultyIcon>().ElementAt(filteredBeatmapIndex);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user