From 90211d18ef69635c978d7e802c900ac5780678e0 Mon Sep 17 00:00:00 2001 From: def Date: Tue, 29 Sep 2020 17:01:39 +0200 Subject: [PATCH] Reset m_TimesRepeated on new line otherwise random lines will mistakenly show [2] --- src/game/client/components/chat.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/client/components/chat.cpp b/src/game/client/components/chat.cpp index 9afd66a45..1c7a45840 100644 --- a/src/game/client/components/chat.cpp +++ b/src/game/client/components/chat.cpp @@ -679,6 +679,7 @@ void CChat::AddLine(int ClientID, int Team, const char *pLine) m_CurrentLine = (m_CurrentLine + 1) % MAX_LINES; pCurrentLine = &m_aLines[m_CurrentLine]; + pCurrentLine->m_TimesRepeated = 0; pCurrentLine->m_Time = time(); pCurrentLine->m_YOffset[0] = -1.0f; pCurrentLine->m_YOffset[1] = -1.0f;