summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/item_menu_icons.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/item_menu_icons.c b/src/item_menu_icons.c
index 843c9eec3..1d9dbb106 100644
--- a/src/item_menu_icons.c
+++ b/src/item_menu_icons.c
@@ -636,8 +636,10 @@ static void sub_80D5070(u8 berryId)
{
struct CompressedSpritePalette pal;
- if (berryId == ITEM_TO_BERRY(ITEM_ENIGMA_BERRY) - 1)
- IsEnigmaBerryValid(); // what's the point of calling it if the return value is ignored?
+ if (berryId == ITEM_TO_BERRY(ITEM_ENIGMA_BERRY) - 1 && IsEnigmaBerryValid())
+ {
+ // unknown empty if statement
+ }
pal.data = gBerryPicTable[berryId].pal;
pal.tag = 0x7544;