Skip to content

Commit dc1c7ac

Browse files
committed
fix sort index overflow in persistCurrentSort function
1 parent 249189e commit dc1c7ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

game/menu/js/izombieonline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function persistCurrentSort() {
5757
document.querySelector(".iz-sort").addEventListener("click", (event) => {
5858
PlaySound2("tap");
5959
currentSortIndex += 1;
60-
if (currentSortIndex === 5) {
60+
if (currentSortIndex === 4) {
6161
currentSortIndex = 0;
6262
}
6363
persistCurrentSort();

0 commit comments

Comments
 (0)