diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2020-07-08 15:42:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-08 15:42:08 -0400 |
commit | 550875757b6bbe3cde41c928c6bbef863b5492bf (patch) | |
tree | b8915678ca603a812ea21fb08727f4729d803ccc /src/easy_chat.c | |
parent | b7532903d7969cc80174ca2538351df2f2aff6d7 (diff) | |
parent | 3264cf697f5fe996c2a79c6c34181c186fe2f96e (diff) |
Merge pull request #1087 from ipatix/fix_aggressive_loop_optimizations
fix aggressive loop optimizations
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 1bdb3fdc0..2a4c49213 100644 --- a/src/easy_chat.c +++ b/src/easy_chat.c @@ -5273,12 +5273,17 @@ void InitEasyChatPhrases(void) gSaveBlock1Ptr->mail[i].words[j] = 0xFFFF; } +#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 < ARRAY_COUNT(gSaveBlock1Ptr->additionalPhrases); i++) + gSaveBlock1Ptr->additionalPhrases[i] = 0; +#endif } static bool8 sub_811F28C(void) |