From 852317d3a6f0aef514f0807b4a81ef2b4609958b Mon Sep 17 00:00:00 2001 From: Joseph Milazzo Date: Fri, 12 Feb 2021 17:56:21 -0600 Subject: [PATCH] Fixed an off by 1 issue with reading manga (for real now) --- API/Services/CacheService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API/Services/CacheService.cs b/API/Services/CacheService.cs index a37812f53..b7b46e86f 100644 --- a/API/Services/CacheService.cs +++ b/API/Services/CacheService.cs @@ -113,7 +113,7 @@ namespace API.Services Array.Sort(files, _numericComparer); // 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); }