mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 03:02:56 +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)
|
if (m.NewValue == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var chatLine = chatLines.SingleOrDefault(c => c.Message == m.NewValue);
|
var chatLine = chatLines.SingleOrDefault(c => c.Message.Equals(m.NewValue));
|
||||||
|
|
||||||
if (chatLine != null)
|
if (chatLine != null)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user