diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2020-09-08 20:01:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-08 20:01:04 -0400 |
commit | fb29a464e63d544f63b8981fdac44981a79eb4a9 (patch) | |
tree | 319e5b685057226bc8ddda16764d71114cde4450 /berry_fix/payload/src/flash.c | |
parent | 818bc4ebe5893783ef386b10b8b0ec6b4967086b (diff) | |
parent | 6fb1d55c33059c90cfc3e590d1e67f7e50eb1c05 (diff) |
Merge pull request #1180 from PokeCodec/splitTableMatch
Match BattleIntroOpponent1SendsOutMonAnimation
Diffstat (limited to 'berry_fix/payload/src/flash.c')
-rw-r--r-- | berry_fix/payload/src/flash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/berry_fix/payload/src/flash.c b/berry_fix/payload/src/flash.c index 1f09d0b8f..499a1f971 100644 --- a/berry_fix/payload/src/flash.c +++ b/berry_fix/payload/src/flash.c @@ -296,7 +296,7 @@ u8 HandleWriteSectorNBytes(u8 sectorNum, u8 *data, u16 size) u8 TryWriteSector(u8 sectorNum, u8 *data) { - if (ProgramFlashSectorAndVerify(sectorNum, data) != 0) // is damaged? + if (ProgramFlashSectorAndVerify(sectorNum, data)) // is damaged? { SetSectorDamagedStatus(SECTOR_DAMAGED, sectorNum); // set damaged sector bits. return SAVE_STATUS_ERROR; |