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

Co-authored-by: solar <solar@heliacal.net>
This commit is contained in:
solarandsolar authored and GitHub committed 2025-08-02 19:16:35 -05:00
1 parent e9be2d76c3
commit 0afef19d26
1 file changed
+5 -1
+5 -1
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 [{}]",