Skip to content

Commit

Permalink
Forgot to add these suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
AsparagusEduardo committed Jan 8, 2023
1 parent 911541b commit 612ef46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/daycare.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,15 +762,18 @@ static const struct {

static void AlterEggSpeciesWithIncenseItem(u16 *species, struct DayCare *daycare)
{
u16 i;
u32 i;
u16 motherItem, fatherItem;
motherItem = GetBoxMonData(&daycare->mons[0].mon, MON_DATA_HELD_ITEM);
fatherItem = GetBoxMonData(&daycare->mons[1].mon, MON_DATA_HELD_ITEM);

for (i = 0; i < ARRAY_COUNT(IncenseBabyTable); i++)
{
if (IncenseBabyTable[i]->babySpecies == *species && motherItem != IncenseBabyTable[i]->item && fatherItem != IncenseBabyTable[i]->item)
{
*species = IncenseBabyTable[i]->currSpecies;
break;
}
}
}

Expand Down

0 comments on commit 612ef46

Please sign in to comment.