mirror of
https://github.com/ppy/osu
synced 2024-12-14 10:57:41 +00:00
Merge pull request #16528 from peppy/remove-detach-collection
Remove unnecessary detach operation
This commit is contained in:
commit
2da8d8a279
@ -209,7 +209,7 @@ namespace osu.Game.Collections
|
||||
|
||||
string checksum = sr.ReadString();
|
||||
|
||||
var beatmap = beatmaps.QueryBeatmap(b => b.MD5Hash == checksum)?.Detach();
|
||||
var beatmap = beatmaps.QueryBeatmap(b => b.MD5Hash == checksum);
|
||||
if (beatmap != null)
|
||||
collection.Beatmaps.Add(beatmap);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user