fix(Core/AuthSession): Correct typo in query field fetch. (#24842)

Co-authored-by: 天鹭 <18535853+PkllonG@users.noreply.github.com>
This commit is contained in:
Benjamin Jackson
2026-02-23 22:52:40 -05:00
committed by GitHub
parent b4773da8a2
commit 56d2efc31e

View File

@@ -155,7 +155,7 @@ void AccountInfo::LoadResult(Field* fields)
FailedLogins = fields[6].Get<uint32>();
IsBanned = fields[7].Get<bool>() || fields[9].Get<bool>();
IsPermanentlyBanned = fields[8].Get<bool>() || fields[10].Get<bool>();
SecurityLevel = static_cast<AccountTypes>(fields[11].Get<uint8>()) > SEC_CONSOLE ? SEC_CONSOLE : static_cast<AccountTypes>(fields[12].Get<uint8>());
SecurityLevel = static_cast<AccountTypes>(fields[11].Get<uint8>()) > SEC_CONSOLE ? SEC_CONSOLE : static_cast<AccountTypes>(fields[11].Get<uint8>());
// Use our own uppercasing of the account name instead of using UPPER() in mysql query
// This is how the account was created in the first place and changing it now would result in breaking