mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-07 15:19:53 +03:00
fix(net): copy correct state and result strings
This commit is contained in:
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user