mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 09:02:58 +08:00
Fix comment can be voted if user is null
This commit is contained in:
parent
1502a6c631
commit
2c31492bbe
@ -59,7 +59,7 @@ namespace osu.Game.Overlays.Comments
|
||||
AccentColour = borderContainer.BorderColour = sideNumber.Colour = colours.GreenLight;
|
||||
hoverLayer.Colour = Color4.Black.Opacity(0.5f);
|
||||
|
||||
if (api.LocalUser.Value.Id != comment.UserId)
|
||||
if ((api.LocalUser.Value?.Id ?? comment.UserId) != comment.UserId)
|
||||
Action = onAction;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user