From 6729f66a375b690af0a89f7bf62137b36184c682 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Fri, 13 Feb 2026 01:57:03 -0800 Subject: [PATCH] World auth: default WotLK region/battlegroup ids to 1 --- src/game/world_packets.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/game/world_packets.cpp b/src/game/world_packets.cpp index 3fbbc16c..a2817ea2 100644 --- a/src/game/world_packets.cpp +++ b/src/game/world_packets.cpp @@ -59,9 +59,11 @@ network::Packet AuthSessionPacket::build(uint32_t build, packet.writeString(upperAccount); packet.writeUInt32(0); // LoginServerType packet.writeUInt32(clientSeed); - packet.writeUInt32(0); // RegionID - packet.writeUInt32(0); // BattlegroupID - packet.writeUInt32(realmId); // RealmID + // Some private cores validate these fields against realmlist/worldserver settings. + // Default to 1/1 and realmId (falling back to 1) rather than all zeros. + packet.writeUInt32(1); // RegionID + packet.writeUInt32(1); // BattlegroupID + packet.writeUInt32(realmId ? realmId : 1); // RealmID LOG_DEBUG(" Realm ID: ", realmId); packet.writeUInt32(0); // DOS response (uint64) packet.writeUInt32(0);