Skip to content

Commit f517852

Browse files
committed
Fix questionnaire bug with alternative answers
1 parent 0408643 commit f517852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CodyMazeBot/Game/QuestionnaireProcessor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ await Bot.SendTextMessageAsync(Conversation.TelegramId,
183183
);
184184
return false;
185185
}
186-
if(selectionIndex < 0 || selectionIndex >= question.Answers.Length)
186+
if(selectionIndex <= 0 || selectionIndex > question.Answers.Length)
187187
{
188188
await Bot.SendTextMessageAsync(Conversation.TelegramId,
189189
Strings.QuestionnaireErrorAlternative,

0 commit comments

Comments
 (0)