Convert == usages to ReferenceEquals

This commit is contained in:
Dan Balasescu
2022-06-20 16:53:03 +09:00
parent 16281f4a48
commit e0c82d11ab
12 changed files with 20 additions and 19 deletions

View File

@ -374,7 +374,7 @@ namespace osu.Game.Rulesets.Osu.Mods
int i = 0;
double currentTime = timingPoint.Time;
while (!definitelyBigger(currentTime, mapEndTime) && controlPointInfo.TimingPointAt(currentTime) == timingPoint)
while (!definitelyBigger(currentTime, mapEndTime) && ReferenceEquals(controlPointInfo.TimingPointAt(currentTime), timingPoint))
{
beats.Add(Math.Floor(currentTime));
i++;