X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=menu.c;h=da9ddf2a0d1ae39c91f2f4e21c49f01df44259ba;hb=1889fe241c1c6059f8955a331dd07f08a47cd0b4;hp=929713dc6b553402dcf3f7c38e1210a032a63b09;hpb=4919040522d4c6a0d3fb64ebee2ffb51c37c8230;p=libpicofe.git diff --git a/menu.c b/menu.c index 929713d..da9ddf2 100644 --- a/menu.c +++ b/menu.c @@ -981,7 +981,6 @@ static int dirent_seek_char(struct dirent **namelist, int len, int sel, char c) { int i; - sel++; for (i = sel + 1; ; i++) { if (i >= len) i = 1; @@ -992,7 +991,7 @@ static int dirent_seek_char(struct dirent **namelist, int len, int sel, char c) break; } - return i - 1; + return i; } static const char *menu_loop_romsel(char *curr_path, int len,