From 8dec8d78903c1a1de8705726772ff0484538306d Mon Sep 17 00:00:00 2001 From: east Date: Mon, 17 Aug 2015 21:35:12 +0200 Subject: [PATCH] Fixed chat highlighting --- src/game/client/components/chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp index f120b442b..e4c9ad91f 100644 --- a/src/game/client/components/chat.cpp +++ b/src/game/client/components/chat.cpp @@ -323,7 +323,7 @@ bool CChat::LineShouldHighlight(const char *pLine, const char *pName) if (pHL) { - int Length = str_length(m_pClient->m_aClients[m_pClient->Client()->m_LocalIDs[0]].m_aName); + int Length = str_length(pName); if((pLine == pHL || pHL[-1] == ' ') && (pHL[Length] == 0 || pHL[Length] == ' ' || pHL[Length] == '.' || pHL[Length] == '!' || pHL[Length] == ',' || pHL[Length] == '?' || pHL[Length] == ':')) return true;