From 1bf3e6869dc1a518849e012e59b80e9e7d636d75 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Fri, 22 Sep 2023 17:50:10 -0700 Subject: [PATCH] fix dice option in create-tournament --- src/ServerShell.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServerShell.cc b/src/ServerShell.cc index 0d1a4bc9..a4f7d759 100644 --- a/src/ServerShell.cc +++ b/src/ServerShell.cc @@ -484,7 +484,7 @@ Proxy session commands:\n\ throw runtime_error("dice option must be of the form dice=X-Y"); } rules.min_dice = stoul(subtokens[0]); - rules.max_dice = stoul(subtokens[0]); + rules.max_dice = stoul(subtokens[1]); } else if (starts_with(token, "overall-time-limit=")) { uint32_t limit = stoul(token.substr(19)); if (limit > 600) {