diff options
author | PikalaxALT <PikalaxALT@gmail.com> | 2020-01-24 21:57:31 -0500 |
---|---|---|
committer | PikalaxALT <PikalaxALT@gmail.com> | 2020-01-24 21:57:31 -0500 |
commit | 70e7f464cafb9173aef2eb0a8a7b47bc90238f09 (patch) | |
tree | 00a63ee6d626b2cd9edf24f567306fcb85e8df8b /src/pokemon.c | |
parent | 2531afb6abe342df58175f7d5bdafca63a600888 (diff) |
PLAYER_NAME_LENGTH to 7
Diffstat (limited to 'src/pokemon.c')
-rw-r--r-- | src/pokemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pokemon.c b/src/pokemon.c index d1305861a..130709598 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -2991,7 +2991,7 @@ u32 GetBoxMonData(struct BoxPokemon *boxMon, s32 field, u8 *data) { retVal = 0; - // FRLG changed this to 7 which used to be PLAYER_NAME_LENGTH + // FRLG changed this to 7 which used to be PLAYER_NAME_LENGTH + 1 while (retVal < 7) { data[retVal] = boxMon->otName[retVal]; @@ -5769,7 +5769,7 @@ s8 GetFlavorRelationByPersonality(u32 personality, u8 flavor) bool8 IsTradedMon(struct Pokemon *mon) { - u8 otName[7 + 1]; // change PLAYER_NAME_LENGTH to 7 + u8 otName[7 + 1]; // change PLAYER_NAME_LENGTH + 1 to 7 u32 otId; GetMonData(mon, MON_DATA_OT_NAME, otName); otId = GetMonData(mon, MON_DATA_OT_ID, 0); |