mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-13 15:13:42 +01:00
Fix formatting
This commit is contained in:
parent
b885e01b39
commit
d7ab1ba588
@ -547,14 +547,14 @@ void RemoveBagItemIconSprite(u8 id)
|
|||||||
#ifdef BUGFIX
|
#ifdef BUGFIX
|
||||||
u8 *spriteId = &gBagMenu->spriteIds[ITEMMENUSPRITE_ITEM];
|
u8 *spriteId = &gBagMenu->spriteIds[ITEMMENUSPRITE_ITEM];
|
||||||
|
|
||||||
if (spriteId[id ^ 1] != SPRITE_NONE)
|
if (spriteId[id ^ 1] != SPRITE_NONE)
|
||||||
gSprites[spriteId[id ^ 1]].invisible = TRUE;
|
gSprites[spriteId[id ^ 1]].invisible = TRUE;
|
||||||
|
|
||||||
if (spriteId[id] != SPRITE_NONE)
|
if (spriteId[id] != SPRITE_NONE)
|
||||||
{
|
{
|
||||||
DestroySpriteAndFreeResources(&gSprites[spriteId[id]]);
|
DestroySpriteAndFreeResources(&gSprites[spriteId[id]]);
|
||||||
spriteId[id] = SPRITE_NONE;
|
spriteId[id] = SPRITE_NONE;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
RemoveBagSprite(id + ITEMMENUSPRITE_ITEM);
|
RemoveBagSprite(id + ITEMMENUSPRITE_ITEM);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user