summaryrefslogtreecommitdiff
path: root/src/easy_chat.c
diff options
context:
space:
mode:
authorKurausukun <lord.uber1@gmail.com>2021-06-26 04:04:22 -0400
committerKurausukun <lord.uber1@gmail.com>2021-06-26 22:51:41 -0400
commit88bd618496b955da4505a8c106dd135235d02542 (patch)
treecd9083138e346cb42910409ee3a91490f37382e7 /src/easy_chat.c
parent8116790c0880cbe03e8d14efe88bf6000f283819 (diff)
port UBFIXes from emerald
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 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)