Update cases where equality can be used instead of primary key equality

This commit is contained in:
Dean Herbert
2021-11-24 12:49:57 +09:00
parent 049f25a133
commit 729f681938
12 changed files with 23 additions and 23 deletions

View File

@ -208,7 +208,7 @@ namespace osu.Game.Beatmaps
using (ContextFactory.GetForWrite())
{
beatmapInfo = setInfo.Beatmaps.Single(b => b.ID == beatmapInfo.ID);
beatmapInfo = setInfo.Beatmaps.Single(b => b.Equals(beatmapInfo));
var metadata = beatmapInfo.Metadata ?? setInfo.Metadata;