mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +08:00
Fix attempting to populate users with invalid IDs
This commit is contained in:
parent
3b4e02e5c7
commit
705e926749
@ -277,7 +277,8 @@ namespace osu.Game.Tournament.Screens.Editors
|
||||
userId.Value = user.Id.ToString();
|
||||
userId.BindValueChanged(idString =>
|
||||
{
|
||||
int.TryParse(idString.NewValue, out var parsed);
|
||||
if (!(int.TryParse(idString.NewValue, out var parsed)))
|
||||
return;
|
||||
|
||||
user.Id = parsed;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user