You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit: the size was not the issue, it is because the game tries to decompress from sItemIconGfxBuffer, even though it's in memory. this only works out because sItemIconGfxBuffer is never written to.
https://github.com/pret/pokeemerald/blob/9bf7a77/src/pokemon_storage_system.c#L560
static u32 sItemIconGfxBuffer[98];
think this definition causes UB, the sprite sheet size is 0x200 but this only allocates 0x188 byteshttps://github.com/pret/pokeemerald/blob/9bf7a77/src/pokemon_storage_system.c#L8735-L8737
Noticed this when I tried to move this buffer to alloc'd space
The text was updated successfully, but these errors were encountered: