mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 01:14:19 +01:00
Minor fix to null check
This commit is contained in:
parent
fc8ee625b6
commit
4e75f6d454
@ -1210,7 +1210,7 @@ void AllocateMonSpritesGfx(void)
|
||||
|
||||
for (j = 0; j < 4; j++)
|
||||
{
|
||||
if (gMonSpritesGfxPtr->sprites.ptr[i] + (j * MON_PIC_SIZE))
|
||||
if (gMonSpritesGfxPtr->sprites.ptr[i])
|
||||
{
|
||||
gMonSpritesGfxPtr->frameImages[i][j].data = gMonSpritesGfxPtr->sprites.ptr[i] + (j * MON_PIC_SIZE);
|
||||
gMonSpritesGfxPtr->frameImages[i][j].size = MON_PIC_SIZE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user