1
0
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:
Andrei Zavatski 2019-10-30 03:27:06 +03:00
parent 1502a6c631
commit 2c31492bbe

View File

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