mirror of
https://github.com/kwsch/PKHeX
synced 2024-09-20 22:32:00 +00:00
Correct SAV4Ranch's SetChecksums() passing the wrong pkEnd offset argument to UpdateMetadata() (#3918)
This commit is contained in:
parent
02eabfb10c
commit
38c7e755db
1 changed files with 2 additions and 1 deletions
|
@ -155,7 +155,8 @@ public sealed class SAV4Ranch : BulkStorage, ISaveFileRevision
|
|||
{
|
||||
var data = Data.AsSpan();
|
||||
var slotCount = GetOccupiedSlotCount();
|
||||
UpdateMetadata(slotCount * SIZE_STORED);
|
||||
int pkStart = PokemonCountOffset + 4;
|
||||
UpdateMetadata(pkStart + (slotCount * SIZE_STORED));
|
||||
|
||||
// 20 byte SHA checksum at the top of the file, which covers all data that follows.
|
||||
var hash = data[..sha1HashSize];
|
||||
|
|
Loading…
Reference in a new issue