mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Bug Fix] Fix Auto Login Issue (#4213)
* [Bug Fix] Fix Auto Login Issue # Notes - We were setting `live_name` value regardless of if we were zoning, causing us to automatically log in to the last character we'd logged in to before. * Remove &
This commit is contained in:
+2
-1
@@ -193,8 +193,9 @@ bool Client::CanTradeFVNoDropItem()
|
||||
|
||||
void Client::SendEnterWorld(std::string name)
|
||||
{
|
||||
const std::string live_name = database.GetLiveChar(GetAccountID());
|
||||
std::string live_name {};
|
||||
if (is_player_zoning) {
|
||||
live_name = database.GetLiveChar(GetAccountID());
|
||||
if(database.GetAccountIDByChar(live_name) != GetAccountID()) {
|
||||
eqs->Close();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user