mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:07:52 +08:00
Adjust NRT to prevent future issues
This way, it will yet at us if the setter is ever moved out of the ctor.
This commit is contained in:
parent
fc05268fc3
commit
e0f1f70b82
@ -3,6 +3,7 @@
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
@ -79,11 +80,12 @@ namespace osu.Game.Rulesets.Osu.UI
|
||||
NewResult += onNewResult;
|
||||
}
|
||||
|
||||
private IHitPolicy hitPolicy = null!;
|
||||
private IHitPolicy hitPolicy;
|
||||
|
||||
public IHitPolicy HitPolicy
|
||||
{
|
||||
get => hitPolicy;
|
||||
[MemberNotNull(nameof(hitPolicy))]
|
||||
set
|
||||
{
|
||||
hitPolicy = value ?? throw new ArgumentNullException(nameof(value));
|
||||
|
Loading…
Reference in New Issue
Block a user