fix mega trigger sprite data corruption
This commit is contained in:
parent
7a237595c9
commit
6f9b310a23
1 changed files with 5 additions and 2 deletions
|
@ -1516,8 +1516,11 @@ bool32 IsMegaTriggerSpriteActive(void)
|
||||||
|
|
||||||
void HideMegaTriggerSprite(void)
|
void HideMegaTriggerSprite(void)
|
||||||
{
|
{
|
||||||
ChangeMegaTriggerSprite(gBattleStruct->mega.triggerSpriteId, 0);
|
if (gBattleStruct->mega.triggerSpriteId != 0xFF)
|
||||||
gSprites[gBattleStruct->mega.triggerSpriteId].tHide = TRUE;
|
{
|
||||||
|
ChangeMegaTriggerSprite(gBattleStruct->mega.triggerSpriteId, 0);
|
||||||
|
gSprites[gBattleStruct->mega.triggerSpriteId].tHide = TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DestroyMegaTriggerSprite(void)
|
void DestroyMegaTriggerSprite(void)
|
||||||
|
|
Loading…
Reference in a new issue