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

replace 'as' with direct cast to avoid possible nullref

This commit is contained in:
unknown
2019-05-11 11:25:29 +02:00
Unverified
parent a8fab4cba1
commit 750e3c4aaf
@@ -20,7 +20,7 @@ namespace osu.Game.Rulesets.Catch.Mods
public override string Description => @"Use the mouse to control the catcher.";
public void ApplyToDrawableRuleset(DrawableRuleset<CatchHitObject> drawableRuleset) =>
(drawableRuleset.Playfield.Parent as Container).Add(new CatchModRelaxHelper(drawableRuleset.Playfield as CatchPlayfield));
((Container)drawableRuleset.Playfield.Parent).Add(new CatchModRelaxHelper(drawableRuleset.Playfield as CatchPlayfield));
private class CatchModRelaxHelper : Drawable, IKeyBindingHandler<CatchAction>, IRequireHighFrequencyMousePosition
{