Fixed crash

This commit is contained in:
Eduardo Quezada D'Ottone 2021-09-30 20:34:42 -03:00
parent e6c81d2862
commit b60aab1f6a

View File

@ -10106,14 +10106,14 @@ void UpdateSpeciesSpritePSS(struct BoxPokemon *boxMon)
u32 pid = GetBoxMonData(boxMon, MON_DATA_PERSONALITY);
// Update front sprite
StartDisplayMonMosaicEffect();
sStorage->displayMonSpecies = species;
sStorage->displayMonPalette = GetMonSpritePalFromSpeciesAndPersonality(species, otId, pid);
LoadDisplayMonGfx(species, pid);
// Recreate icon sprite
if (!sJustOpenedBag)
{
StartDisplayMonMosaicEffect();
// Recreate icon sprite
if (sInPartyMenu)
{
DestroyAllPartyMonIcons();