summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/p18/commands.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p18/commands.cc b/src/p18/commands.cc
index 1a8bc55..74a0571 100644
--- a/src/p18/commands.cc
+++ b/src/p18/commands.cc
@@ -328,7 +328,7 @@ p18::CommandType validate_input(std::string& command,
throw std::invalid_argument("invalid id");
std::array<std::string, 3> priorities({"SF", "SU", "S"});
- long index = index_of(priorities, arguments[0]);
+ long index = index_of(priorities, arguments[1]);
if (index == -1)
throw std::invalid_argument("invalid argument");