1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

Made default link ID -1 (if no link is present) because linkId is currently being set to link.index which can be 0.

This commit is contained in:
FreezyLemon 2017-12-04 13:34:16 +01:00
parent cf96323980
commit fd13bacf4a

View File

@ -14,7 +14,7 @@ namespace osu.Game.Online.Chat
{
public class ChatLinkSpriteText : OsuLinkSpriteText
{
public int LinkId;
public int LinkId = -1;
private Color4 hoverColour;
private Color4 urlColour;
@ -57,6 +57,8 @@ namespace osu.Game.Online.Chat
{
hoverColour = colours.Yellow;
urlColour = colours.Blue;
if (LinkId != -1)
Content.Colour = urlColour;
}
}
}