mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 16:12:54 +08:00
Reset column key when it can't be set.
This commit is contained in:
parent
8d82a52942
commit
8aa6bb636c
@ -144,6 +144,10 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
int keyOffset = default_keys.Length / 2 - nonSpecialColumns.Count / 2 + i;
|
||||
if (keyOffset >= 0 && keyOffset < default_keys.Length)
|
||||
column.Key = default_keys[keyOffset];
|
||||
else
|
||||
// There is no default key defined for this column. Let's set this to Unknown for now
|
||||
// however note that this will be gone after bindings are in place
|
||||
column.Key = Key.Unknown;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user