Don't use Equals(object) on T?.

This commit is contained in:
Huo Yaoyuan
2019-12-03 20:07:22 +08:00
parent 8a6b2e681a
commit a42f9447e6
3 changed files with 4 additions and 3 deletions

View File

@ -280,7 +280,7 @@ namespace osu.Game.Rulesets.Objects
if (other.ControlPoints == null && ControlPoints != null)
return false;
return ControlPoints.SequenceEqual(other.ControlPoints) && ExpectedDistance.Equals(other.ExpectedDistance) && Type == other.Type;
return ControlPoints.SequenceEqual(other.ControlPoints) && ExpectedDistance == other.ExpectedDistance && Type == other.Type;
}
}
}