Fixed compilation error when turning P_GENDER_DIFFERENCES off (#6223)

This commit is contained in:
Eduardo Quezada 2025-02-09 11:37:56 -03:00 committed by GitHub
parent d45a6487ab
commit d3417b00a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;