[Loginserver] Fix Legacy World When Using Local DB (#4970)

Co-authored-by: solar <solar@heliacal.net>
This commit is contained in:
solar 2025-08-02 17:16:35 -07:00 committed by GitHub
parent e9be2d76c3
commit 0afef19d26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -155,7 +155,11 @@ void WorldServer::ProcessUserToWorldResponseLegacy(uint16_t opcode, const EQ::Ne
auto *res = (UsertoWorldResponseLegacy *) packet.Data();
LogDebug("Trying to find client with user id of [{}]", res->lsaccountid);
Client *c = server.client_manager->GetClient(res->lsaccountid, "eqemu");
std::string db_loginserver = "local";
if (std::getenv("LSPX")) {
db_loginserver = "eqemu";
}
Client *c = server.client_manager->GetClient(res->lsaccountid, db_loginserver);
if (c) {
LogDebug(
"Found client with user id of [{}] and account name of [{}]",