From 49fb7eba60be004878a7f941e5cedc6f7dcdad7d Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Wed, 13 Aug 2025 11:42:20 -0700 Subject: [PATCH] fix $bank when used with MoreSaveSlots --- src/ChatCommands.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ChatCommands.cc b/src/ChatCommands.cc index bb956ff2..decc62b9 100644 --- a/src/ChatCommands.cc +++ b/src/ChatCommands.cc @@ -423,12 +423,14 @@ ChatCommandDefinition cc_bank( } else { send_text_message(a.c, "$C6Created shared bank (0)"); } - } else if (new_char_index <= 4) { + + } else if (new_char_index <= 127) { a.c->use_character_bank(new_char_index - 1); auto bp = a.c->current_bank_character(); auto name = escape_player_name(bp->disp.name.decode(a.c->language())); send_text_message_fmt(a.c, "$C6Using {}\'s bank ({})", name, new_char_index); + } else { throw precondition_failed("$C6Invalid bank number"); }