This commit is contained in:
cawtds
2025-01-20 18:19:20 +01:00
parent f2897e5172
commit 2ef3f650a3
2 changed files with 5 additions and 5 deletions

View File

@@ -976,10 +976,10 @@ struct BattleSpriteData
struct MonSpritesGfx
{
void *firstDecompressed; // ptr to the decompressed sprite of the first Pokémon
void *firstDecompressed; // ptr to the decompressed sprite of the first pokemon
u8 *spritesGfx[MAX_BATTLERS_COUNT];
struct SpriteTemplate templates[MAX_BATTLERS_COUNT];
struct SpriteFrameImage frameImages[MAX_BATTLERS_COUNT][4];
struct SpriteFrameImage images[MAX_BATTLERS_COUNT][4];
u8 *barFontGfx;
u16 *buffer;
};

View File

@@ -1180,11 +1180,11 @@ void AllocateMonSpritesGfx(void)
for (j = 0; j < MAX_MON_PIC_FRAMES; ++j)
{
gMonSpritesGfxPtr->frameImages[i][j].data = gMonSpritesGfxPtr->spritesGfx[i] + (j * 0x800);
gMonSpritesGfxPtr->frameImages[i][j].size = 0x800;
gMonSpritesGfxPtr->images[i][j].data = gMonSpritesGfxPtr->spritesGfx[i] + (j * 0x800);
gMonSpritesGfxPtr->images[i][j].size = 0x800;
}
gMonSpritesGfxPtr->templates[i].images = gMonSpritesGfxPtr->frameImages[i];
gMonSpritesGfxPtr->templates[i].images = gMonSpritesGfxPtr->images[i];
}
gMonSpritesGfxPtr->barFontGfx = AllocZeroed(0x1000);
}