fix color-initials command
This commit is contained in:
parent
62bf71a2f2
commit
3d7015f63d
1 changed files with 2 additions and 2 deletions
|
@ -188,11 +188,11 @@ namespace Hanabi {
|
|||
}
|
||||
|
||||
if (prompt.starts_with("set-initials")) {
|
||||
if (prompt.length() < 12) {
|
||||
if (prompt.length() < 16) {
|
||||
std::cout << "At least 3 initials need to be specified" << std::endl;
|
||||
continue;
|
||||
}
|
||||
const std::string new_initials = prompt.substr(9);
|
||||
const std::string new_initials = prompt.substr(13);
|
||||
for(size_t i = 0; i < std::min(size_t(6), new_initials.length()); i++) {
|
||||
suit_initials[i] = new_initials[i];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue