1
0
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:
Salman Ahmed 2021-02-17 07:48:23 +03:00
parent 3b4e02e5c7
commit 705e926749

View File

@ -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;