mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 13:22:55 +08:00
Add extra check in 'SelectPreviousRandom'
Check if the poped beatmap exists within the beatmapSets
This commit is contained in:
parent
36113f60b7
commit
0991c56e1c
@ -540,7 +540,7 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
var beatmap = randomSelectedBeatmaps.Pop();
|
||||
|
||||
if (!beatmap.Filtered.Value)
|
||||
if (!beatmap.Filtered.Value && beatmapSets.Any(beatset => beatset.Beatmaps.Contains(beatmap)))
|
||||
{
|
||||
if (selectedBeatmapSet != null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user