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:
parent
5a34122a85
commit
85f77abee1
@ -50,7 +50,7 @@ namespace osu.Game.Overlays.Mods
|
||||
|
||||
public void SetContent(ModPreset preset)
|
||||
{
|
||||
if (preset == lastPreset)
|
||||
if (ReferenceEquals(preset, lastPreset))
|
||||
return;
|
||||
|
||||
lastPreset = preset;
|
||||
|
Loading…
Reference in New Issue
Block a user