fix $bank when used with MoreSaveSlots
This commit is contained in:
+3
-1
@@ -423,12 +423,14 @@ ChatCommandDefinition cc_bank(
|
|||||||
} else {
|
} else {
|
||||||
send_text_message(a.c, "$C6Created shared bank (0)");
|
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);
|
a.c->use_character_bank(new_char_index - 1);
|
||||||
auto bp = a.c->current_bank_character();
|
auto bp = a.c->current_bank_character();
|
||||||
|
|
||||||
auto name = escape_player_name(bp->disp.name.decode(a.c->language()));
|
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);
|
send_text_message_fmt(a.c, "$C6Using {}\'s bank ({})", name, new_char_index);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
throw precondition_failed("$C6Invalid bank number");
|
throw precondition_failed("$C6Invalid bank number");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user