fix(net): copy correct state and result strings

This commit is contained in:
fallenoak 2023-02-07 17:21:37 -06:00
parent 0f93736390
commit 6b2af7ed1e
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -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);
}