From 4ba03a6d54381378b7bf741b965029b6d3365724 Mon Sep 17 00:00:00 2001 From: Eduardo Quezada D'Ottone Date: Thu, 30 Sep 2021 22:47:25 -0300 Subject: [PATCH] Fixed corruption bug when giving too many items from bag into boxes. --- src/pokemon_storage_system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pokemon_storage_system.c b/src/pokemon_storage_system.c index 3c7051e169..bf07fb5844 100644 --- a/src/pokemon_storage_system.c +++ b/src/pokemon_storage_system.c @@ -10126,9 +10126,9 @@ void UpdateSpeciesSpritePSS(struct BoxPokemon *boxMon) // Update front sprite sStorage->displayMonSpecies = species; sStorage->displayMonPalette = GetMonSpritePalFromSpeciesAndPersonality(species, otId, pid); - LoadDisplayMonGfx(species, pid); if (!sJustOpenedBag) { + LoadDisplayMonGfx(species, pid); StartDisplayMonMosaicEffect(); // Recreate icon sprite