summaryrefslogtreecommitdiff
path: root/src/pokemon_size_record.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-02-18 09:59:24 -0500
committerGriffinR <griffin.g.richards@gmail.com>2021-02-18 09:59:24 -0500
commit02c1fbd733da15e82687ec2d346b8151ca00ccf8 (patch)
tree03d31f85cc4f43b52d0f9cc1cc30a1fd022280b4 /src/pokemon_size_record.c
parent642ae8295e6617652cbd5592e98d08dc81602bcc (diff)
Document ribbon TV show, add new ribbon IDs/size
Diffstat (limited to 'src/pokemon_size_record.c')
-rw-r--r--src/pokemon_size_record.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pokemon_size_record.c b/src/pokemon_size_record.c
index 2f76c5d69..4beb9c83f 100644
--- a/src/pokemon_size_record.c
+++ b/src/pokemon_size_record.c
@@ -198,10 +198,10 @@ void GiveGiftRibbonToParty(u8 index, u8 ribbonId)
s32 i;
bool32 gotRibbon = FALSE;
u8 data = 1;
- u8 array[8];
+ u8 array[ARRAY_COUNT(sGiftRibbonsMonDataIds)];
memcpy(array, sGiftRibbonsMonDataIds, sizeof(sGiftRibbonsMonDataIds));
- if (index < GIFT_RIBBONS_COUNT && ribbonId < 65)
+ if (index < GIFT_RIBBONS_COUNT && ribbonId <= MAX_GIFT_RIBBON)
{
gSaveBlock1Ptr->giftRibbons[index] = ribbonId;
for (i = 0; i < PARTY_SIZE; i++)