mirror of
https://github.com/ppy/osu.git
synced 2026-05-30 20:50:48 +08:00
Fix hard crash on hitting an out of range key (Q~P)
This commit is contained in:
@@ -205,7 +205,7 @@ namespace osu.Game.Rulesets.Edit
|
||||
|
||||
if (checkRightToggleFromKey(e.Key, out var rightIndex))
|
||||
{
|
||||
var item = togglesCollection.Children[rightIndex];
|
||||
var item = togglesCollection.ElementAtOrDefault(rightIndex);
|
||||
|
||||
if (item is SettingsCheckbox checkbox)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user