More fencepost errors!

This commit is contained in:
Kistaro Windrider 2023-04-02 19:08:26 -07:00
parent e96d81a7b4
commit 0f21020647
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -265,7 +265,7 @@ func promptCard[C StatsCollection](p *Player[C], card Card[C]) (optionIdx int, e
}
fmt.Println()
if valid {
fmt.Printf("Go (B)ack, (Q)uit, or enact a choice (1 - %d)? > ", len(opts)+1)
fmt.Printf("Go (B)ack, (Q)uit, or enact a choice (1 - %d)? > ", len(opts))
} else {
fmt.Print("Go (B)ack or (Q)uit? > ")
}
@ -507,7 +507,7 @@ func review[C StatsCollection](p *Player[C]) error {
cls()
displayOnePanel(p, p.InfoPanels[i-1])
wait()
} else if i < handOffset {
} else if i <= handOffset {
i = i - actionsOffset - 1
_, _, err := displayCard(p, p.PermanentActions[i], false)
errs.Add(err)