mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-17 22:43:55 +00:00
out of bounds on 25 fix
This commit is contained in:
@@ -120,6 +120,7 @@ class MangaChapterAdapter(
|
||||
|
||||
fun downloadNChaptersFrom(position: Int, n: Int) {
|
||||
//download next n chapters
|
||||
if (position < 0 || position >= arr.size) return
|
||||
for (i in 0..<n) {
|
||||
if (position + i < arr.size) {
|
||||
val chapterNumber = arr[position + i].number
|
||||
|
||||
Reference in New Issue
Block a user