mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 00:13:10 +08:00
Use Equals
instead of reference equality operator
This commit is contained in:
parent
f645869958
commit
d74064b94b
@ -92,7 +92,7 @@ namespace osu.Game.Overlays.Chat
|
||||
if (m.NewValue == null)
|
||||
return;
|
||||
|
||||
var chatLine = chatLines.SingleOrDefault(c => c.Message == m.NewValue);
|
||||
var chatLine = chatLines.SingleOrDefault(c => c.Message.Equals(m.NewValue));
|
||||
|
||||
if (chatLine != null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user