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

@ -214,7 +214,7 @@ namespace osu.Game
SkinManager.ItemRemoved += item => Schedule(() =>
{
// check the removed skin is not the current user choice. if it is, switch back to default.
if (item.ID == SkinManager.CurrentSkinInfo.Value.ID)
if (item.Equals(SkinManager.CurrentSkinInfo.Value))
SkinManager.CurrentSkinInfo.Value = SkinInfo.Default;
});