1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 14:37:30 +08:00

Merge pull request #30379 from peppy/dont-delete-scores

Don't delete scores when deleting beatmaps
This commit is contained in:
Dan Balasescu 2024-10-22 14:22:14 +09:00 committed by GitHub
commit 1bdae2af41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -376,10 +376,6 @@ namespace osu.Game.Database
{
foreach (var beatmap in beatmapSet.Beatmaps)
{
// Cascade delete related scores, else they will have a null beatmap against the model's spec.
foreach (var score in beatmap.Scores)
realm.Remove(score);
realm.Remove(beatmap.Metadata);
realm.Remove(beatmap);
}