summaryrefslogtreecommitdiff
path: root/src/recorded_battle.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-04-05 08:41:31 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-04-05 08:41:31 -0400
commita58d9a16dd7e4f263ebccda50e70103e7490886b (patch)
treeddde359501adee874131731c700862c615c46e77 /src/recorded_battle.c
parenta677d1f4cb6f2925e9694b8d2b408273dcd13d9b (diff)
parent9e74409bb2032e25d431dda116462759e5b51fe0 (diff)
Merge branch 'master' into dodrio_berry_picking
Diffstat (limited to 'src/recorded_battle.c')
-rw-r--r--src/recorded_battle.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/recorded_battle.c b/src/recorded_battle.c
index c11dc55e7..9f2be36af 100644
--- a/src/recorded_battle.c
+++ b/src/recorded_battle.c
@@ -1,5 +1,6 @@
#include "global.h"
#include "battle.h"
+#include "battle_anim.h"
#include "recorded_battle.h"
#include "main.h"
#include "pokemon.h"
@@ -321,7 +322,7 @@ static bool32 RecordedBattleToSave(struct RecordedBattleSave *battleSave, struct
saveSection->checksum = CalcByteArraySum((void*)(saveSection), sizeof(*saveSection) - 4);
- if (sub_8153634(31, (void*)(saveSection)) != 1)
+ if (TryWriteSpecialSaveSection(SECTOR_ID_RECORDED_BATTLE, (void*)(saveSection)) != 1)
return FALSE;
else
return TRUE;
@@ -490,7 +491,7 @@ bool32 MoveRecordedBattleToSaveData(void)
static bool32 TryCopyRecordedBattleSaveData(struct RecordedBattleSave *dst, struct SaveSection *saveBuffer)
{
- if (TryCopySpecialSaveSection(SECTOR_ID_RECORDED_BATTLE, (void*)(saveBuffer)) != 1)
+ if (TryReadSpecialSaveSection(SECTOR_ID_RECORDED_BATTLE, (void*)(saveBuffer)) != 1)
return FALSE;
memcpy(dst, saveBuffer, sizeof(struct RecordedBattleSave));