Fix HGSS dex sprites for gen9+ (#7922)

This commit is contained in:
FosterProgramming 2025-10-14 18:17:19 +02:00 committed by GitHub
parent 51760f1c76
commit 7cf768bb7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4540,7 +4540,7 @@ static u32 GetPokedexMonPersonality(u16 species)
static u16 CreateMonSpriteFromNationalDexNumberHGSS(u16 nationalNum, s16 x, s16 y, u16 paletteSlot)
{
u32 species = NationalPokedexNumToSpeciesHGSS(nationalNum);
return CreateMonPicSprite(nationalNum, FALSE, GetPokedexMonPersonality(species), TRUE, x, y, paletteSlot, TAG_NONE);
return CreateMonPicSprite(species, FALSE, GetPokedexMonPersonality(species), TRUE, x, y, paletteSlot, TAG_NONE);
}
static u16 GetPokemonScaleFromNationalDexNumber(u16 nationalNum)