From 2d6096cfdac8cae67e0008b1a625179c5fba2deb Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sat, 31 May 2025 23:15:00 -0700 Subject: [PATCH] fix $savechar on BB --- src/ChatCommands.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChatCommands.cc b/src/ChatCommands.cc index fd3e7f8d..e19269c6 100644 --- a/src/ChatCommands.cc +++ b/src/ChatCommands.cc @@ -487,7 +487,13 @@ static asio::awaitable server_command_bbchar_savechar(const Args& a, bool // If the client isn't BB, request the player info. (If they are BB, the // server already has it) - auto ch = co_await send_get_player_info(a.c, true); + GetPlayerInfoResult ch; + if (a.c->version() == Version::BB_V4) { + ch.character = a.c->character(); + ch.is_full_info = true; + } else { + ch = co_await send_get_player_info(a.c, true); + } string filename = dest_bb_license ? Client::character_filename(dest_bb_license->username, dest_character_index)