From 65586c05f70bb9ae99d17290b0bd0ce66ad6829a Mon Sep 17 00:00:00 2001 From: Derrick Timmermans Date: Wed, 21 Feb 2024 23:01:03 +0100 Subject: [PATCH] Don't attempt to cast pressedActions --- osu.Game.Rulesets.Sentakki/SentakkiInputManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game.Rulesets.Sentakki/SentakkiInputManager.cs b/osu.Game.Rulesets.Sentakki/SentakkiInputManager.cs index b27b47364..46f0a94ac 100644 --- a/osu.Game.Rulesets.Sentakki/SentakkiInputManager.cs +++ b/osu.Game.Rulesets.Sentakki/SentakkiInputManager.cs @@ -46,7 +46,7 @@ protected override bool Handle(UIEvent e) protected override void PropagateReleased(IEnumerable drawables, InputState state, SentakkiAction released) { int actionCount = 0; - var pressed = (List)PressedActions; + var pressed = PressedActions; for (int i = 0; i < pressed.Count; ++i) { @@ -61,7 +61,7 @@ protected override void PropagateReleased(IEnumerable drawables, Input } } - public SlimReadOnlyListWrapper PressedActions => ((List)KeyBindingContainer.PressedActions).AsSlimReadOnly(); + public SlimReadOnlyListWrapper PressedActions => KeyBindingContainer.PressedActions; // For makeshift virtual input handling public void TriggerPressed(SentakkiAction action) => KeyBindingContainer.TriggerPressed(action);