From 3da1d76367a296712c2882a618d5102bbf15fb94 Mon Sep 17 00:00:00 2001 From: ungarscool1 Date: Sun, 16 Aug 2020 12:24:15 +0200 Subject: [PATCH] Fix vote --- .../java/com/github/ungarscool1/Roboto/entity/Vote.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/github/ungarscool1/Roboto/entity/Vote.java b/src/main/java/com/github/ungarscool1/Roboto/entity/Vote.java index 8437062..2355cf4 100644 --- a/src/main/java/com/github/ungarscool1/Roboto/entity/Vote.java +++ b/src/main/java/com/github/ungarscool1/Roboto/entity/Vote.java @@ -62,9 +62,9 @@ public String builder(String option) { return "option1 / " + nombreOption; } else { int curopt = where - 4; - options[curopt] = option; - if ((curopt) < nombreOption) { - return "option" + (curopt) + " / " + nombreOption; + options[curopt-1] = option; + if (curopt < nombreOption) { + return "option" + (curopt + 1) + " / " + nombreOption; } else { return "fin multi"; }