Skip to content

Commit

Permalink
(fix #914) mcfish bug:out of range (#923)
Browse files Browse the repository at this point in the history
修复 mcfish 数组越界问题
  • Loading branch information
vatebur authored Jun 11, 2024
1 parent 3b3b17a commit 81e255e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/mcfish/pole.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ func init() {
ctx.SendChain(message.At(ctx.Event.UserID), message.Text("[0]请输入正确的序号\n", list))
continue
}
if first > max || second > max || third > max {
if first >= max || second >= max || third >= max {
ctx.SendChain(message.At(ctx.Event.UserID), message.Text("[", max, "]请输入正确的序号\n", list))
continue
}
Expand Down

0 comments on commit 81e255e

Please sign in to comment.