1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Add extra check in 'SelectPreviousRandom'

Check if the poped beatmap exists within the beatmapSets
This commit is contained in:
Renzo Poggio 2023-04-25 00:05:15 -03:00
parent 36113f60b7
commit 0991c56e1c
No known key found for this signature in database
GPG Key ID: AC690BFC2E88E3F7

View File

@ -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)
{