1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 05:49:52 +08:00

Add null-checks to comparers.

This commit is contained in:
Dean Herbert
2017-03-31 12:55:43 +09:00
Unverified
parent e7ecc479c9
commit 0bcec4e61a
+3
View File
@@ -34,6 +34,9 @@ namespace osu.Game.Modes.Osu
{
public int Compare(ReplayFrame f1, ReplayFrame f2)
{
if (f1 == null) throw new NullReferenceException($@"{nameof(f1)} cannot be null");
if (f2 == null) throw new NullReferenceException($@"{nameof(f2)} cannot be null");
return f1.Time.CompareTo(f2.Time);
}
}