mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 12:07:38 +01:00
Fixed crash
This commit is contained in:
parent
e6c81d2862
commit
b60aab1f6a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user