Fixed glitch pokemon follower sprites.

This commit is contained in:
Ariel Antonitis 2021-03-15 23:04:19 -04:00
parent 3a0795d862
commit c15ae199aa

View file

@ -1619,7 +1619,7 @@ struct ObjectEvent * GetFollowerObject(void) { // Return follower ObjectEvent or
// Return graphicsInfo for a pokemon species
static const struct ObjectEventGraphicsInfo * SpeciesToGraphicsInfo(u16 species, u8 form) {
const struct ObjectEventGraphicsInfo *graphicsInfo = &gPokemonObjectGraphics[species];
return graphicsInfo->tileTag != 0xFFFF ? &gObjectEventGraphicsInfo_Dusclops : graphicsInfo;
return graphicsInfo->tileTag == 0xFFFF ? graphicsInfo : &gPokemonObjectGraphics[SPECIES_PORYGON];
}
// Set graphics & sprite for a follower object event by species & shininess.