mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 11:37:40 +01:00
Fix memory corruption when handling the ultra burst trigger sprite
This commit is contained in:
parent
f95b4fdb4c
commit
4e0e70ae81
@ -1596,11 +1596,11 @@ bool32 IsBurstTriggerSpriteActive(void)
|
||||
|
||||
void HideBurstTriggerSprite(void)
|
||||
{
|
||||
if (gBattleStruct->burst.triggerSpriteId != 0xFF)
|
||||
{
|
||||
ChangeBurstTriggerSprite(gBattleStruct->burst.triggerSpriteId, 0);
|
||||
gSprites[gBattleStruct->burst.triggerSpriteId].tHide = TRUE;
|
||||
}
|
||||
if (gBattleStruct->burst.triggerSpriteId >= MAX_SPRITES)
|
||||
return;
|
||||
ChangeBurstTriggerSprite(gBattleStruct->burst.triggerSpriteId, 0);
|
||||
gSprites[gBattleStruct->burst.triggerSpriteId].tHide = TRUE;
|
||||
|
||||
}
|
||||
|
||||
void DestroyBurstTriggerSprite(void)
|
||||
|
Loading…
Reference in New Issue
Block a user