Fix kick button action asserting and using User.User.ID rather than User.UserID

This commit is contained in:
Salman Ahmed
2021-08-16 09:26:45 +03:00
parent 79cd062784
commit 7fe6f6dd14

View File

@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics;
using System.Linq; using System.Linq;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Extensions.Color4Extensions;
@ -168,12 +167,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Participants
Origin = Anchor.Centre, Origin = Anchor.Centre,
Alpha = 0, Alpha = 0,
Margin = new MarginPadding(4), Margin = new MarginPadding(4),
Action = () => Action = () => Client.KickUser(User.UserID),
{
Debug.Assert(user != null);
Client.KickUser(user.Id);
}
}, },
}, },
} }