diff options
author | Marcus Huderle <huderlem@gmail.com> | 2017-11-04 19:49:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-04 19:49:38 -0700 |
commit | 8832b766facd48c85c1b99ac6dad555f1e2aa1c7 (patch) | |
tree | 8f4bded9d721a993674a4e5d9eeb57ad86580d39 /src/engine/save.c | |
parent | 1698e882b4760bcfe8cf91073cf7e46541ae6392 (diff) | |
parent | b4c6e0560a7b1310cc08b93ea04935d4fbb7c3de (diff) |
Merge pull request #450 from ProjectRevoTPP/fix_setmondata
various fixes
Diffstat (limited to 'src/engine/save.c')
-rw-r--r-- | src/engine/save.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/save.c b/src/engine/save.c index eae3f4470..5ea949cae 100644 --- a/src/engine/save.c +++ b/src/engine/save.c @@ -282,7 +282,7 @@ u8 sub_81255B8(u16 a1, const struct SaveSectionLocation *location) for (i = 0; i < sizeof(struct UnkSaveSection); i++) { - if (ProgramFlashByte(sector, i, ((u8 *)gFastSaveSection)[i])) + if (ProgramFlashByte(sector, i, gFastSaveSection->data[i])) { status = 0xFF; break; @@ -402,7 +402,7 @@ u8 sub_81258BC(u16 a1, const struct SaveSectionLocation *location) { u16 j; for (j = 0; j < location[id].size; j++) - ((u8 *)location[id].data)[j] = gFastSaveSection->data[j]; + location[id].data[j] = gFastSaveSection->data[j]; } } @@ -774,7 +774,7 @@ u8 unref_sub_8125FF0(u8 *data, u16 size) for (i = 0; i < size; i++) section->data[i] = data[i]; - gLastSaveSectorStatus = ProgramFlashSectorAndVerifyNBytes(gFlashSectors[0], (u8 *)section, sizeof(struct SaveSection)); + gLastSaveSectorStatus = ProgramFlashSectorAndVerifyNBytes(gFlashSectors[0], section, sizeof(struct SaveSection)); if (gLastSaveSectorStatus) return 0xFF; |