[Bug Fix] Fix Issue With Auto Login (#4267)

This commit is contained in:
Alex King 2024-04-20 21:07:37 -04:00 committed by GitHub
parent c3295d129d
commit 7b44745c67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -205,7 +205,7 @@ void Client::SendEnterWorld(std::string name)
LogInfo("Zoning with live_name [{}] account_id [{}]", live_name, GetAccountID());
}
if (RuleB(World, EnableAutoLogin)) {
if (!is_player_zoning && RuleB(World, EnableAutoLogin)) {
live_name = AccountRepository::GetAutoLoginCharacterNameByAccountID(database, GetAccountID());
LogInfo("Attempting to auto login with live_name [{}] account_id [{}]", live_name, GetAccountID());
}