mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 19:54:21 +01:00
Stop double-counting EOS in assert
This commit is contained in:
parent
65fee186f8
commit
344fe4dd65
@ -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.
|
// 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.
|
// 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)
|
u32 BattleStringExpandPlaceholders(const u8 *src, u8 *dst)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user