mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-19 03:20:11 +03:00
fix(net): copy correct state and result strings
This commit is contained in:
parent
0f93736390
commit
6b2af7ed1e
@ -7,10 +7,10 @@ void LoginResponse::UpdateLoginStatus(LOGIN_STATE state, LOGIN_RESULT result, co
|
||||
this->m_loginResult = result;
|
||||
|
||||
char stateStr[64];
|
||||
SStrCopy(stateStr, Grunt::g_LoginStateStringNames[LOGIN_STATE_AUTHENTICATED], sizeof(stateStr));
|
||||
SStrCopy(stateStr, Grunt::g_LoginStateStringNames[state], sizeof(stateStr));
|
||||
|
||||
char resultStr[64];
|
||||
SStrCopy(resultStr, Grunt::g_LoginResultStringNames[LOGIN_OK], sizeof(resultStr));
|
||||
SStrCopy(resultStr, Grunt::g_LoginResultStringNames[result], sizeof(resultStr));
|
||||
|
||||
this->LoginServerStatus(state, result, addrStr, stateStr, resultStr, flags);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user