Skip to content
Permalink
Browse files

Fixed bug where checksum == 0

Typo caused a bug where the save game failed to load in certain instances.
  • Loading branch information
EternalCode committed Nov 27, 2019
1 parent 01522a5 commit 1329ddaeb16e98c5fbabd30da0462d5f221d21b9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/saveblock_expansion/saveblock_expand.c
@@ -135,7 +135,7 @@ u8 HandleLoadSector(u16 a1, const struct SaveBlockChunk *chunks)
*gFirstSaveSector = i;
u16 checksum = CalculateChecksum(saveSection->data, chunks[id].size);
checksum_status = checksum == saveSection->checksum;
checksum_status = checksum && saveSection->signature == FILE_SIGNATURE;
checksum_status = checksum_status && (saveSection->signature == FILE_SIGNATURE);
if (checksum_status) {
memcpy(chunks[id].data, saveSection->data, chunks[id].size);
loadParasite();

0 comments on commit 1329dda

Please sign in to comment.
You can’t perform that action at this time.