diff options
author | oy <tom_adams@web.de> | 2023-06-29 21:11:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-29 21:11:36 +0200 |
commit | a1911c8f7d8458fb4076ef8e7651e8ef5e91ab3e (patch) | |
tree | 67e5d81ac331c1830bef9f876322d6eba9e3b83e | |
parent | c1649f21a6b50149ec00ddfd9a8523b4fa35b1d9 (diff) | |
parent | fbfbd2e0da9db756cbfed8d4ef815ebb8ed52159 (diff) |
Fix uninitialized `CLineInput` member variables
-rw-r--r-- | src/game/client/lineinput.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/client/lineinput.cpp b/src/game/client/lineinput.cpp index 6328af0ec..bddae50a3 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; |