1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-04 21:12:54 +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
parent cf192c84a8
commit b87478f6e2

View File

@ -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
{