Merge pull request #1406 from ghoulslash/be_bugfix
Fix data corruption from HideMegaTriggerSprite
This commit is contained in:
commit
6b7a7ca260
1 changed files with 5 additions and 2 deletions
|
@ -1483,8 +1483,11 @@ bool32 IsMegaTriggerSpriteActive(void)
|
|||
|
||||
void HideMegaTriggerSprite(void)
|
||||
{
|
||||
ChangeMegaTriggerSprite(gBattleStruct->mega.triggerSpriteId, 0);
|
||||
gSprites[gBattleStruct->mega.triggerSpriteId].tHide = TRUE;
|
||||
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