Update src/item_menu_icons.c

Co-authored-by: sneed <56992013+Sneed69@users.noreply.github.com>
This commit is contained in:
Colton G. Rushton 2022-06-17 18:16:14 -03:00 committed by GitHub
parent b17fb2ff56
commit b885e01b39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -544,20 +544,20 @@ void AddBagItemIconSprite(u16 itemId, u8 id)
void RemoveBagItemIconSprite(u8 id)
{
#ifdef BUGFIX
#ifdef BUGFIX
u8 *spriteId = &gBagMenu->spriteIds[ITEMMENUSPRITE_ITEM];
if (spriteId[id ^ 1] != SPRITE_NONE)
if (spriteId[id ^ 1] != SPRITE_NONE)
gSprites[spriteId[id ^ 1]].invisible = TRUE;
if (spriteId[id] != SPRITE_NONE)
{
if (spriteId[id] != SPRITE_NONE)
{
DestroySpriteAndFreeResources(&gSprites[spriteId[id]]);
spriteId[id] = SPRITE_NONE;
}
#else
}
#else
RemoveBagSprite(id + ITEMMENUSPRITE_ITEM);
#endif
#endif
}
void CreateItemMenuSwapLine(void)