Fix index limits mistake in manage

This commit is contained in:
2023-10-22 20:21:50 +02:00
parent 26b649ebae
commit 833acefbb3
3 changed files with 12 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ namespace platform {
class CommandParser {
public:
CommandParser() = default;
pair<char, int> parse(const string& color, const vector<tuple<string, char, bool>>& options, const char defaultCommand);
pair<char, int> parse(const string& color, const vector<tuple<string, char, bool>>& options, const char defaultCommand, const int maxIndex);
char getCommand() const { return command; };
int getIndex() const { return index; };
private: