mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-19 03:20:11 +03:00
fix(net): use correct size for account name length
This commit is contained in:
parent
52db47e403
commit
474588bbee
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user