mirror of
https://github.com/ppy/osu.git
synced 2024-09-22 16:47:24 +08:00
Add null check to ScrollToAndHighlightMessage
This commit is contained in:
parent
997b51b1f8
commit
1a1253a4aa
@ -239,6 +239,9 @@ namespace osu.Game.Overlays.Chat
|
||||
|
||||
public void ScrollToAndHighlightMessage(Message message)
|
||||
{
|
||||
if (message is null)
|
||||
return;
|
||||
|
||||
var chatLine = findChatLine(message);
|
||||
scroll.ScrollTo(chatLine);
|
||||
chatLine.FlashColour(HighlightColour, 5000, Easing.InExpo);
|
||||
|
Loading…
Reference in New Issue
Block a user