fix an off by one
All checks were successful
/ Build & Publish (push) Successful in 55s

This commit is contained in:
Daniella / Tove 2024-06-25 07:29:28 +02:00
parent a6d9d723e8
commit 86ce31b987
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -65,7 +65,7 @@ public class CBWindow extends JFrame implements WindowListener {
} }
} }
else { else {
if(--selected == list.size()) { if(++selected == list.size()) {
selected--; selected--;
wasMovingUp = true; wasMovingUp = true;
} }