mirror of
https://github.com/ppy/osu
synced 2024-12-17 20:35:21 +00: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", () =>
|
||||
{
|
||||
filteredBeatmap = songSelect.Carousel.SelectedBeatmapSet.Beatmaps.First(b => b.BPM < maxBPM);
|
||||
int filteredBeatmapIndex = getBeatmapIndex(filteredBeatmap.BeatmapSet, filteredBeatmap);
|
||||
var selectedSet = songSelect.Carousel.SelectedBeatmapSet;
|
||||
filteredBeatmap = selectedSet.Beatmaps.First(b => b.BPM < maxBPM);
|
||||
int filteredBeatmapIndex = getBeatmapIndex(selectedSet, filteredBeatmap);
|
||||
filteredIcon = set.ChildrenOfType<FilterableDifficultyIcon>().ElementAt(filteredBeatmapIndex);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user