mirror of
https://github.com/ppy/osu.git
synced 2026-06-07 18:04:02 +08:00
Mark the class as non-nullable.
Not the safe way but got no better idea.
This commit is contained in:
committed by
andy840119
Unverified
parent
53e61c5041
commit
91bc7b9381
@@ -37,7 +37,7 @@ namespace osu.Game.Rulesets.Catch.Mods
|
||||
|
||||
protected override Flashlight CreateFlashlight() => new CatchFlashlight(this, playfield);
|
||||
|
||||
private CatchPlayfield playfield;
|
||||
private CatchPlayfield playfield = null!;
|
||||
|
||||
public override void ApplyToDrawableRuleset(DrawableRuleset<CatchHitObject> drawableRuleset)
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace osu.Game.Rulesets.Catch.Mods
|
||||
{
|
||||
public override string Description => @"Use the mouse to control the catcher.";
|
||||
|
||||
private DrawableRuleset<CatchHitObject> drawableRuleset;
|
||||
private DrawableRuleset<CatchHitObject> drawableRuleset = null!;
|
||||
|
||||
public void ApplyToDrawableRuleset(DrawableRuleset<CatchHitObject> drawableRuleset)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user