mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 17:12:54 +08:00
Fix possible exception with "invalid" key
Triggered by toggling Shift+Tab during gameplay.
This commit is contained in:
parent
37841ca3aa
commit
a06f624a4a
@ -29,6 +29,9 @@ namespace osu.Game.Localisation
|
|||||||
{
|
{
|
||||||
var split = lookup.Split(':');
|
var split = lookup.Split(':');
|
||||||
|
|
||||||
|
if (split.Length < 2)
|
||||||
|
return null;
|
||||||
|
|
||||||
string ns = split[0];
|
string ns = split[0];
|
||||||
string key = split[1];
|
string key = split[1];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user