Use cast in SocialOverlay

This commit is contained in:
Andrei Zavatski 2020-03-17 01:38:45 +03:00
parent cc5833db80
commit 6ec01a67af

View File

@ -120,7 +120,7 @@ namespace osu.Game.Overlays
{
case SocialTab.Friends:
var friendRequest = new GetFriendsRequest(); // TODO filter arguments?
friendRequest.Success += users => Users = users.Select(u => (User)u).ToArray();
friendRequest.Success += users => Users = users.Cast<User>().ToArray();
API.Queue(getUsersRequest = friendRequest);
break;