diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-07-03 17:25:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-03 17:25:05 -0400 |
commit | 585d92f298e1edd8f756f8362de45c9fadc6fcab (patch) | |
tree | 2e3b17d37c4782f575329fc0fbe1f7bd406e6bad /src/easy_chat.c | |
parent | 558097f42326f19044a6351004468a46d6ee0b38 (diff) | |
parent | ff94d49a45ef605cfaed1268aa5a230958e25cd9 (diff) |
Merge pull request #445 from Kurausukun/ubfix
Port UBFIX Macro and Some Usages from Emerald
Diffstat (limited to 'src/easy_chat.c')
-rw-r--r-- | src/easy_chat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/easy_chat.c b/src/easy_chat.c index 4360dc72e..55bc104db 100644 --- a/src/easy_chat.c +++ b/src/easy_chat.c @@ -459,12 +459,17 @@ void InitEasyChatPhrases(void) gSaveBlock1Ptr->mail[i].words[j] = EC_WORD_UNDEFINED; } +#ifndef UBFIX // BUG: This is supposed to clear 64 bits, but this loop is clearing 64 bytes. // However, this bug has no resulting effect on gameplay because only the // Mauville old man data is corrupted, which is initialized directly after // this function is called when starting a new game. for (i = 0; i < 64; i++) gSaveBlock1Ptr->additionalPhrases[i] = 0; +#else + for (i = 0; i < NELEMS(gSaveBlock1Ptr->additionalPhrases); i++) + gSaveBlock1Ptr->additionalPhrases[i] = 0; +#endif } void EC_ResetMEventProfileMaybe(void) |