mirror of
https://github.com/pret/pokeemerald.git
synced 2026-05-12 14:08:31 -05:00
Fixed compilation error when turning P_GENDER_DIFFERENCES off (#6223)
This commit is contained in:
parent
d45a6487ab
commit
d3417b00a2
|
|
@ -1989,8 +1989,10 @@ static u32 LoadDynamicFollowerPalette(u32 species, bool32 shiny, bool32 female)
|
|||
{
|
||||
struct SpritePalette spritePalette;
|
||||
u16 palTag = species + OBJ_EVENT_MON + (shiny ? OBJ_EVENT_MON_SHINY : 0);
|
||||
#if P_GENDER_DIFFERENCES
|
||||
if (female && gSpeciesInfo[species].overworldShinyPaletteFemale != NULL)
|
||||
palTag += OBJ_EVENT_MON_FEMALE;
|
||||
#endif
|
||||
// palette already loaded
|
||||
if ((paletteNum = IndexOfSpritePaletteTag(palTag)) < 16)
|
||||
return paletteNum;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user