fix(Core/Player): Allow players to enter the world (#19261)

This commit is contained in:
Kitzunu
2024-07-03 12:06:48 +02:00
committed by GitHub
parent 0a8175ef03
commit e839581649

View File

@@ -4980,7 +4980,7 @@ bool Player::LoadFromDB(ObjectGuid playerGuid, CharacterDatabaseQueryHolder cons
m_name = fields[2].Get<std::string>();
// check name limitations
if (ObjectMgr::CheckPlayerName(m_name) != CHAR_NAME_SUCCESS || AccountMgr::IsPlayerAccount(GetSession()->GetSecurity()))
if (ObjectMgr::CheckPlayerName(m_name) != CHAR_NAME_SUCCESS)
{
CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPD_ADD_AT_LOGIN_FLAG);
stmt->SetData(0, uint16(AT_LOGIN_RENAME));