From 157dfdaa825f72ea345a5d4c1463ac9639cba364 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 12 Jan 2022 01:18:11 +0900 Subject: [PATCH] Fix protected beatmap sets getting deleted --- osu.Game/Beatmaps/BeatmapManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Beatmaps/BeatmapManager.cs b/osu.Game/Beatmaps/BeatmapManager.cs index 9b2b7c960d..21cda18c1a 100644 --- a/osu.Game/Beatmaps/BeatmapManager.cs +++ b/osu.Game/Beatmaps/BeatmapManager.cs @@ -239,7 +239,7 @@ namespace osu.Game.Beatmaps { using (var context = contextFactory.CreateContext()) { - var items = context.All().Where(s => !s.DeletePending); + var items = context.All().Where(s => !s.DeletePending && !s.Protected); if (filter != null) items = items.Where(filter);