Skip to content

Commit

Permalink
(fix FloatTech#914) mcfish bug:out of range
Browse files Browse the repository at this point in the history
修复 mcfish 数组越界问题
  • Loading branch information
vatebur committed Jun 11, 2024
1 parent 835ba26 commit 7b1ec12
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 7b1ec12

Please sign in to comment.