From b60aab1f6a232ca00fcd925fd27e94e1fa1303c2 Mon Sep 17 00:00:00 2001 From: Eduardo Quezada D'Ottone Date: Thu, 30 Sep 2021 20:34:42 -0300 Subject: [PATCH] Fixed crash --- src/pokemon_storage_system.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pokemon_storage_system.c b/src/pokemon_storage_system.c index 0626fcd0b0..7768f4e32d 100644 --- a/src/pokemon_storage_system.c +++ b/src/pokemon_storage_system.c @@ -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();