From a71940bf75667f5875ef52d4a33c474110fda851 Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 12 Oct 2020 14:34:44 -0700 Subject: [PATCH] Update CaptureRecords.cs Co-Authored-By: Matt <17801814+sora10pls@users.noreply.github.com> --- PKHeX.Core/Saves/Substructures/Gen7/CaptureRecords.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PKHeX.Core/Saves/Substructures/Gen7/CaptureRecords.cs b/PKHeX.Core/Saves/Substructures/Gen7/CaptureRecords.cs index d6126f260..b1fdb9323 100644 --- a/PKHeX.Core/Saves/Substructures/Gen7/CaptureRecords.cs +++ b/PKHeX.Core/Saves/Substructures/Gen7/CaptureRecords.cs @@ -98,7 +98,7 @@ namespace PKHeX.Core uint total = 0; for (int i = 0; i < ENTRY_COUNT; i++) total += GetCapturedCountIndex(i); - return total; + return Math.Min(total, MAX_COUNT_TOTAL); } public uint CalculateTotalTransferred() @@ -106,7 +106,7 @@ namespace PKHeX.Core uint total = 0; for (int i = 0; i < ENTRY_COUNT; i++) total += GetTransferredCountIndex(i); - return total; + return Math.Min(total, MAX_COUNT_TOTAL); } public void SetAllCaptured(uint count = MAX_COUNT_ENTRY_CAPTURE, Zukan7b? dex = null)