1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 21:07:33 +08:00

Add null-checks to comparers.

This commit is contained in:
Dean Herbert 2017-03-31 12:55:43 +09:00
parent e7ecc479c9
commit 0bcec4e61a
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

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);
}
}