1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Fix code quality inspection about ambiguous equality

This commit is contained in:
Bartłomiej Dach 2022-07-31 22:59:33 +02:00
parent 5a34122a85
commit 85f77abee1
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -50,7 +50,7 @@ namespace osu.Game.Overlays.Mods
public void SetContent(ModPreset preset)
{
if (preset == lastPreset)
if (ReferenceEquals(preset, lastPreset))
return;
lastPreset = preset;