From c960330ebf7fdb9e223f8d0f4991a211a31e9386 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Thu, 8 Aug 2002 19:03:14 +0000 Subject: Fixed indexing bug in build_playlist git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1622 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index 3479aebe88..cbb19fc2bd 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -112,6 +112,7 @@ extern unsigned char bitmap_icons_6x8[LastIcon][6]; static int build_playlist(int start_index) { int i; + int start=start_index; playlist_clear(); @@ -125,7 +126,7 @@ static int build_playlist(int start_index) else { /* Adjust the start index when se skip non-MP3 entries */ - if(i < start_index) + if(i < start) start_index--; } } -- cgit v1.2.3