mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Handle overflow case
Co-Authored-By: Matt <17801814+sora10pls@users.noreply.github.com>
This commit is contained in:
parent
a71940bf75
commit
7b6f30b779
1 changed files with 2 additions and 2 deletions
|
@ -103,10 +103,10 @@ namespace PKHeX.Core
|
|||
|
||||
public uint CalculateTotalTransferred()
|
||||
{
|
||||
uint total = 0;
|
||||
ulong total = 0;
|
||||
for (int i = 0; i < ENTRY_COUNT; i++)
|
||||
total += GetTransferredCountIndex(i);
|
||||
return Math.Min(total, MAX_COUNT_TOTAL);
|
||||
return (uint)Math.Min(total, MAX_COUNT_TOTAL);
|
||||
}
|
||||
|
||||
public void SetAllCaptured(uint count = MAX_COUNT_ENTRY_CAPTURE, Zukan7b? dex = null)
|
||||
|
|
Loading…
Reference in a new issue