Fixed an off by 1 issue with reading manga (for real now)
This commit is contained in:
parent
9a50241734
commit
852317d3a6
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ namespace API.Services
|
||||||
Array.Sort(files, _numericComparer);
|
Array.Sort(files, _numericComparer);
|
||||||
|
|
||||||
// Since array is 0 based, we need to keep that in account (only affects last image)
|
// Since array is 0 based, we need to keep that in account (only affects last image)
|
||||||
if (page - 1 == files.Length)
|
if (page == files.Length)
|
||||||
{
|
{
|
||||||
return (files.ElementAt(page - 1 - pagesSoFar), mangaFile);
|
return (files.ElementAt(page - 1 - pagesSoFar), mangaFile);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue