Fix out of bounds error.
We might call timeline.add() with an invalid position if we skipped a song due to being unfilled. Use 'added' instead of 'j' to calculate the queue position.
This commit is contained in:
parent
38cbce6d78
commit
c2ed38f0af
@ -775,7 +775,7 @@ public final class SongTimeline {
|
||||
continue;
|
||||
}
|
||||
|
||||
timeline.add(start + j, song);
|
||||
timeline.add(start + added, song);
|
||||
added++;
|
||||
|
||||
if (jumpSong == null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user