1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Attempt to fix crashing from weird input interactions

This commit is contained in:
Dean Herbert 2022-07-22 20:19:13 +09:00
parent ee5e27638e
commit 7baa1a7e85

View File

@ -143,6 +143,10 @@ namespace osu.Game.Rulesets.Taiko.UI
TaikoAction taikoAction = getTaikoActionFromInput(position);
// Not too sure how this can happen, but let's avoid throwing.
if (trackedActions.ContainsKey(source))
return;
trackedActions.Add(source, taikoAction);
keyBindingContainer.TriggerPressed(taikoAction);
}