Minor fix to null check

This commit is contained in:
gruxor 2023-07-21 16:22:43 -04:00
parent fc8ee625b6
commit 4e75f6d454

View File

@ -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;