fix mega trigger sprite data corruption

This commit is contained in:
Evan 2021-02-11 16:00:49 -07:00
parent 7a237595c9
commit 6f9b310a23

View file

@ -1515,10 +1515,13 @@ bool32 IsMegaTriggerSpriteActive(void)
}
void HideMegaTriggerSprite(void)
{
if (gBattleStruct->mega.triggerSpriteId != 0xFF)
{
ChangeMegaTriggerSprite(gBattleStruct->mega.triggerSpriteId, 0);
gSprites[gBattleStruct->mega.triggerSpriteId].tHide = TRUE;
}
}
void DestroyMegaTriggerSprite(void)
{