fix(net): use correct size for account name length

This commit is contained in:
fallenoak 2023-01-06 22:31:33 -06:00
parent 52db47e403
commit 474588bbee
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -115,7 +115,7 @@ void Grunt::ClientLink::PackLogon(CDataStore& msg, const Logon& logon) {
msg.Put(this->m_clientIP);
uint32_t accountNameLen = SStrLen(this->m_accountName);
auto accountNameLen = static_cast<uint8_t>(SStrLen(this->m_accountName));
msg.Put(accountNameLen);
msg.PutData(this->m_accountName, accountNameLen);