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:
parent
ee5e27638e
commit
7baa1a7e85
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user