mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 16:47:46 +08:00
Use explicit reference equality check
This commit is contained in:
parent
1bcf835d22
commit
ceeb9b0819
@ -30,7 +30,7 @@ namespace osu.Game.Rulesets.Edit.Checks
|
||||
|
||||
foreach (var file in beatmapSet.Files)
|
||||
{
|
||||
if (audioFile != null && file.File == audioFile.File) continue;
|
||||
if (audioFile != null && ReferenceEquals(file.File, audioFile.File)) continue;
|
||||
|
||||
using (Stream data = context.WorkingBeatmap.GetStream(file.File.GetStoragePath()))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user