diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2018-03-09 22:22:00 +0100 |
---|---|---|
committer | DizzyEggg <jajkodizzy@wp.pl> | 2018-03-09 22:22:00 +0100 |
commit | 70ec55386ce640b6844f7c0bf93a7a447888cb66 (patch) | |
tree | e03fcca7398b4f322881ed0f7d159dd40c64169b /src | |
parent | 1771e8b458c76a52f6d475bcc3f10124382c3ca9 (diff) |
if
Diffstat (limited to 'src')
-rw-r--r-- | src/item_menu_icons.c | 6 |
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; |