From fd13bacf4ad9a4ac32ee29701e2faee32e4f7a26 Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Mon, 4 Dec 2017 13:34:16 +0100 Subject: [PATCH] Made default link ID -1 (if no link is present) because linkId is currently being set to link.index which can be 0. --- osu.Game/Online/Chat/ChatLinkSpriteText.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osu.Game/Online/Chat/ChatLinkSpriteText.cs b/osu.Game/Online/Chat/ChatLinkSpriteText.cs index 4b87894a0c..adbdd9ed0c 100644 --- a/osu.Game/Online/Chat/ChatLinkSpriteText.cs +++ b/osu.Game/Online/Chat/ChatLinkSpriteText.cs @@ -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; } } }