mirror of
https://github.com/rh-hideout/pokeemerald-expansion
synced 2025-10-05 23:42:46 +02:00
Fix LTO breaking with FREE_MYSTERY_GIFT set to TRUE (#7844)
This commit is contained in:
@@ -5851,16 +5851,23 @@ static u8 IsEasyChatWordUnlocked(u16 easyChatWord)
|
||||
void InitializeEasyChatWordArray(u16 *words, u16 length)
|
||||
{
|
||||
u16 i;
|
||||
for (i = length - 1; i != EC_EMPTY_WORD; i--)
|
||||
*(words++) = EC_EMPTY_WORD;
|
||||
if (words != NULL)
|
||||
{
|
||||
for (i = length - 1; i != EC_EMPTY_WORD; i--)
|
||||
*(words++) = EC_EMPTY_WORD;
|
||||
}
|
||||
}
|
||||
|
||||
void InitQuestionnaireWords(void)
|
||||
{
|
||||
int i;
|
||||
u16 *words = GetQuestionnaireWordsPtr();
|
||||
for (i = 0; i < NUM_QUESTIONNAIRE_WORDS; i++)
|
||||
words[i] = EC_EMPTY_WORD;
|
||||
|
||||
if (words != NULL)
|
||||
{
|
||||
for (i = 0; i < NUM_QUESTIONNAIRE_WORDS; i++)
|
||||
words[i] = EC_EMPTY_WORD;
|
||||
}
|
||||
}
|
||||
|
||||
bool32 IsEasyChatAnswerUnlocked(int easyChatWord)
|
||||
|
Reference in New Issue
Block a user