Reset the username on disconnect

This commit is contained in:
Learath 2017-10-16 20:01:33 +02:00
parent 648452ca60
commit 81135d17de

View file

@ -820,6 +820,7 @@ void CGameConsole::OnStateChange(int NewState, int OldState)
if(OldState == IClient::STATE_ONLINE && NewState < IClient::STATE_LOADING)
{
m_RemoteConsole.m_UserGot = false;
m_RemoteConsole.m_aUser[0] = '\0';
m_RemoteConsole.m_Input.Clear();
m_RemoteConsole.m_UsernameReq = false;
}