Skip to content

Commit

Permalink
Merge pull request teeworlds#3204 from Robyt3/CLineInput-Uninitialized
Browse files Browse the repository at this point in the history
Fix uninitialized `CLineInput` member variables
  • Loading branch information
oy authored Jun 29, 2023
2 parents c1649f2 + fbfbd2e commit a1911c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/game/client/lineinput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a1911c8

Please sign in to comment.