summaryrefslogtreecommitdiff
path: root/src/easy_chat.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-07-08 15:45:31 -0400
committerGriffinR <griffin.g.richards@gmail.com>2020-07-08 15:45:31 -0400
commit431c60c92c59ba0c2d5a658e0c490f46162bb5d2 (patch)
tree7f03009ed9475a0f8e7aac6ed6ca2ab89a527577 /src/easy_chat.c
parent8b462f3f6c30de55767808136861e892fc3f0356 (diff)
parent8b80b417e2172a44098a22473717da20585bd15d (diff)
Merge branch 'master' of https://github.com/pret/pokeemerald into doc-confetti
Diffstat (limited to 'src/easy_chat.c')
-rw-r--r--src/easy_chat.c5
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)