fix mega trigger sprite data corruption
This commit is contained in:
parent
7a237595c9
commit
6f9b310a23
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue