Skip to content

Commit 81e255e

Browse files
authored
(fix #914) mcfish bug:out of range (#923)
修复 mcfish 数组越界问题
1 parent 3b3b17a commit 81e255e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/mcfish/pole.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ func init() {
431431
ctx.SendChain(message.At(ctx.Event.UserID), message.Text("[0]请输入正确的序号\n", list))
432432
continue
433433
}
434-
if first > max || second > max || third > max {
434+
if first >= max || second >= max || third >= max {
435435
ctx.SendChain(message.At(ctx.Event.UserID), message.Text("[", max, "]请输入正确的序号\n", list))
436436
continue
437437
}

0 commit comments

Comments
 (0)