World auth: default WotLK region/battlegroup ids to 1

This commit is contained in:
Kelsi 2026-02-13 01:57:03 -08:00
parent bb7d1d7d85
commit 6729f66a37

View file

@ -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);