From 70ec55386ce640b6844f7c0bf93a7a447888cb66 Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Fri, 9 Mar 2018 22:22:00 +0100 Subject: [PATCH] if --- src/item_menu_icons.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/item_menu_icons.c b/src/item_menu_icons.c index 843c9eec3b..1d9dbb1063 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;