diff --git a/main.c b/main.c index 15d1328..dd8bda9 100644 --- a/main.c +++ b/main.c @@ -1514,7 +1514,7 @@ static int fileBrowserMenuCtrl() { } else if (hold_pad[PAD_DOWN] || hold2_pad[PAD_LEFT_ANALOG_DOWN]) { int old_pos = base_pos + rel_pos; - if ((rel_pos + 1) < file_list.length) { + if ((old_pos + 1) < file_list.length) { if ((rel_pos + 1) < MAX_POSITION) { rel_pos++; } else if ((base_pos + rel_pos + 1) < file_list.length) {