From 6f9c442e7a375aa317c8c8d11cc9767fb0a26e57 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Thu, 21 May 2026 06:42:24 -0700 Subject: [PATCH] fix missing login in send_client_init_bb --- src/SendCommands.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/SendCommands.cc b/src/SendCommands.cc index 6c5256a2..90f5ced0 100644 --- a/src/SendCommands.cc +++ b/src/SendCommands.cc @@ -628,12 +628,17 @@ static void scramble_bb_security_data(parray& data, uint8_t which } void send_client_init_bb(shared_ptr c, uint32_t error_code) { - auto team = c->team(); S_ClientInit_BB_00E6 cmd; cmd.error_code = error_code; cmd.player_tag = 0x00010000; - cmd.guild_card_number = c->login->account->account_id; - cmd.security_token = team ? team->team_id : 0; + if (c->login) { + auto team = c->team(); + cmd.guild_card_number = c->login->account->account_id; + cmd.security_token = team ? team->team_id : 0; + } else { + cmd.guild_card_number = 0xFFFFFFFF; + cmd.security_token = 0xFFFFFFFF; + } cmd.client_config = c->bb_client_config; cmd.can_create_team = 1; cmd.episode_4_unlocked = 1;