Skip to content

Commit

Permalink
#5: context question index bug fix (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattesMrzik authored Dec 11, 2023
1 parent e86add0 commit d2d4920
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,9 @@ public <O> O question(String question, O... options) {
assert (options.length >= 2);
interaction(question);
Map<String, O> mapping = new HashMap<>(options.length);
int i = 1;
int i = 0;
for (O option : options) {
i++;
String key = "" + option;
addMapping(mapping, key, option);
String numericKey = Integer.toString(i);
Expand Down

0 comments on commit d2d4920

Please sign in to comment.