From 5e6a5355f54270ae95d9955b8617b3193ec31420 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Mon, 13 Nov 2023 14:00:59 -0800 Subject: [PATCH] fix load condition for non-BB clients --- src/Player.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.cc b/src/Player.cc index bedf2bea..de9091d6 100644 --- a/src/Player.cc +++ b/src/Player.cc @@ -149,7 +149,7 @@ shared_ptr ClientGameData::character(bool allow_load, bool a return this->overlay_character_data; } if (!this->character_data && allow_load) { - if (this->bb_character_index < 0) { + if (!this->bb_username.empty() && (this->bb_character_index < 0)) { throw runtime_error("character index not specified"); } this->load_all_files();