From e9d568db5b8f0531620c21ae6fe23952ee85b789 Mon Sep 17 00:00:00 2001 From: Learath Date: Wed, 5 Jun 2024 18:01:42 +0200 Subject: [PATCH] Fix console search highlighting. Close #8451 --- src/engine/client/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/client/text.cpp b/src/engine/client/text.cpp index 8c16fe289..b7c228221 100644 --- a/src/engine/client/text.cpp +++ b/src/engine/client/text.cpp @@ -1667,7 +1667,7 @@ public: while(pCurrent < pBatchEnd && pCurrent != pEllipsis) { - const int PrevCharCount = pCursor->m_GlyphCount; + const int PrevCharCount = pCursor->m_CharCount; pCursor->m_CharCount += pTmp - pCurrent; pCurrent = pTmp; int Character = NextCharacter;