diff --git a/src/game/client/lineinput.cpp b/src/game/client/lineinput.cpp index 6328af0ec5..bddae50a33 100644 --- a/src/game/client/lineinput.cpp +++ b/src/game/client/lineinput.cpp @@ -33,6 +33,7 @@ void CLineInput::SetBuffer(char *pStr, int MaxSize, int MaxChars) m_WasChanged = m_pStr && pLastStr && m_WasChanged; if(!pLastStr) { + m_CursorPos = m_SelectionStart = m_SelectionEnd = 0; m_ScrollOffset = m_ScrollOffsetChange = 0.0f; m_CaretPosition = vec2(0, 0); m_Hidden = false;