mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
fix(net): copy correct state and result strings
This commit is contained in:
parent
0f93736390
commit
6b2af7ed1e
1 changed files with 2 additions and 2 deletions
|
|
@ -7,10 +7,10 @@ void LoginResponse::UpdateLoginStatus(LOGIN_STATE state, LOGIN_RESULT result, co
|
||||||
this->m_loginResult = result;
|
this->m_loginResult = result;
|
||||||
|
|
||||||
char stateStr[64];
|
char stateStr[64];
|
||||||
SStrCopy(stateStr, Grunt::g_LoginStateStringNames[LOGIN_STATE_AUTHENTICATED], sizeof(stateStr));
|
SStrCopy(stateStr, Grunt::g_LoginStateStringNames[state], sizeof(stateStr));
|
||||||
|
|
||||||
char resultStr[64];
|
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);
|
this->LoginServerStatus(state, result, addrStr, stateStr, resultStr, flags);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue