mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Fix the MOTHERLOAD of undetected issues that are now visible thanks to net6.0
This commit is contained in:
@ -16,7 +16,7 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
|
||||
public void AttachGroup(ControlPointGroup pointGroup) => Time = pointGroup.Time;
|
||||
|
||||
public int CompareTo(ControlPoint other) => Time.CompareTo(other.Time);
|
||||
public int CompareTo(ControlPoint? other) => Time.CompareTo(other?.Time);
|
||||
|
||||
public virtual Color4 GetRepresentingColour(OsuColour colours) => colours.Yellow;
|
||||
|
||||
@ -32,7 +32,7 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
/// </summary>
|
||||
public ControlPoint DeepClone()
|
||||
{
|
||||
var copy = (ControlPoint)Activator.CreateInstance(GetType());
|
||||
var copy = (ControlPoint)Activator.CreateInstance(GetType())!;
|
||||
|
||||
copy.CopyFrom(this);
|
||||
|
||||
|
@ -26,7 +26,7 @@ namespace osu.Game.Beatmaps.ControlPoints
|
||||
Time = time;
|
||||
}
|
||||
|
||||
public int CompareTo(ControlPointGroup other) => Time.CompareTo(other.Time);
|
||||
public int CompareTo(ControlPointGroup? other) => Time.CompareTo(other?.Time);
|
||||
|
||||
public void Add(ControlPoint point)
|
||||
{
|
||||
|
Reference in New Issue
Block a user