Sync global

This commit is contained in:
GriffinR
2021-11-19 17:04:04 -05:00
parent cd4462f58c
commit b2c74cae84
40 changed files with 456 additions and 522 deletions
+3 -1
View File
@@ -921,6 +921,8 @@ const struct BerryTree gBlankBerryTree = {};
berries[ITEM_ENIGMA_BERRY - FIRST_BERRY_INDEX]; \
})
static u32 GetEnigmaBerryChecksum(struct EnigmaBerry *);
void InitEnigmaBerry(void)
{
s32 i;
@@ -967,7 +969,7 @@ void SetEnigmaBerry(u8 * berry)
enigmaBerry->checksum = GetEnigmaBerryChecksum(enigmaBerry);
}
u32 GetEnigmaBerryChecksum(struct EnigmaBerry * enigmaBerry)
static u32 GetEnigmaBerryChecksum(struct EnigmaBerry * enigmaBerry)
{
const u8 * src = (const u8 *)enigmaBerry;
u32 result = 0;