diff options
author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2017-10-06 23:30:35 -0400 |
---|---|---|
committer | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2017-10-06 23:30:35 -0400 |
commit | 2ecb9fcd130af975dd85a86e8e0fb23520aa7869 (patch) | |
tree | 80c0ff6be5c288aa46a8f4152dd015c31739c88f /src | |
parent | e38fd8347d2519551648c351d528cc3fee3924d4 (diff) |
oops
Diffstat (limited to 'src')
-rw-r--r-- | src/save.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/save.c b/src/save.c index aee20d451..2c1b26ca9 100644 --- a/src/save.c +++ b/src/save.c @@ -15,7 +15,6 @@ extern const struct SaveSectionOffsets gSaveSectionOffsets[0xE]; extern void DoSaveFailedScreen(u8); // save_failed_screen extern void LoadSerializedGame(void); // load_save extern bool32 ProgramFlashSectorAndVerify(u8 sector, u8 *data); -extern void ReadFlash(u8 sector, u32 arg1, void* data, u32 size); // iwram common u16 gLastWrittenSector; @@ -806,7 +805,7 @@ u32 sub_81535DC(u8 sector, u8* dst) if (sector != 30 && sector != 31) return 0xFF; - ReadFlash(sector, 0, &gSaveDataBuffer, sizeof(struct SaveSection)); + ReadFlash(sector, 0, (u8 *)&gSaveDataBuffer, sizeof(struct SaveSection)); if (*(u32*)(&gSaveDataBuffer.data[0]) != 0xB39D) return 0xFF; // copies whole save section except u32 counter |