if
This commit is contained in:
@@ -636,8 +636,10 @@ static void sub_80D5070(u8 berryId)
|
|||||||
{
|
{
|
||||||
struct CompressedSpritePalette pal;
|
struct CompressedSpritePalette pal;
|
||||||
|
|
||||||
if (berryId == ITEM_TO_BERRY(ITEM_ENIGMA_BERRY) - 1)
|
if (berryId == ITEM_TO_BERRY(ITEM_ENIGMA_BERRY) - 1 && IsEnigmaBerryValid())
|
||||||
IsEnigmaBerryValid(); // what's the point of calling it if the return value is ignored?
|
{
|
||||||
|
// unknown empty if statement
|
||||||
|
}
|
||||||
|
|
||||||
pal.data = gBerryPicTable[berryId].pal;
|
pal.data = gBerryPicTable[berryId].pal;
|
||||||
pal.tag = 0x7544;
|
pal.tag = 0x7544;
|
||||||
|
|||||||
Reference in New Issue
Block a user