Skip to content

Commit

Permalink
Stop double-counting EOS in assert
Browse files Browse the repository at this point in the history
  • Loading branch information
GriffinRichards committed Aug 13, 2023
1 parent 65fee18 commit 344fe4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/battle_message.c
Original file line number Diff line number Diff line change
Expand Up @@ -2307,7 +2307,7 @@ static const u8 *TryGetStatusString(u8 *src)

// Ensure the defined length for an item name can contain the full defined length of a berry name.
// This ensures that custom Enigma Berry names will fit in the text buffer at the top of BattleStringExpandPlaceholders.
STATIC_ASSERT(BERRY_NAME_LENGTH + 1 + ARRAY_COUNT(sText_BerrySuffix) <= ITEM_NAME_LENGTH, BerryNameTooLong);
STATIC_ASSERT(BERRY_NAME_LENGTH + ARRAY_COUNT(sText_BerrySuffix) <= ITEM_NAME_LENGTH, BerryNameTooLong);

u32 BattleStringExpandPlaceholders(const u8 *src, u8 *dst)
{
Expand Down

0 comments on commit 344fe4d

Please sign in to comment.