From c81f53ab6b28936e2a419d497bab10403e252e12 Mon Sep 17 00:00:00 2001 From: Learath2 Date: Sun, 12 Mar 2017 17:37:16 +0100 Subject: [PATCH] Forgot CID can be -1 --- 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 4cfe304ca..efa47e3f2 100644 --- a/src/game/client/components/chat.cpp +++ b/src/game/client/components/chat.cpp @@ -542,9 +542,9 @@ void CChat::AddLine(int ClientID, int Team, const char *pLine) str_copy(m_aLines[m_CurrentLine].m_aName, m_pClient->m_aClients[ClientID].m_aName, sizeof(m_aLines[m_CurrentLine].m_aName)); str_format(m_aLines[m_CurrentLine].m_aText, sizeof(m_aLines[m_CurrentLine].m_aText), ": %s", pLine); + m_aLines[m_CurrentLine].m_Friend = m_pClient->m_aClients[ClientID].m_Friend; } - m_aLines[m_CurrentLine].m_Friend = m_pClient->m_aClients[ClientID].m_Friend; char aBuf[1024]; str_format(aBuf, sizeof(aBuf), "%s%s", m_aLines[m_CurrentLine].m_aName, m_aLines[m_CurrentLine].m_aText);