From 4e75f6d4547c5dc69e8355ad5343877217ccc11b Mon Sep 17 00:00:00 2001 From: gruxor Date: Fri, 21 Jul 2023 16:22:43 -0400 Subject: [PATCH] Minor fix to null check --- src/battle_gfx_sfx_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle_gfx_sfx_util.c b/src/battle_gfx_sfx_util.c index 24011d670..b7cf2c238 100644 --- a/src/battle_gfx_sfx_util.c +++ b/src/battle_gfx_sfx_util.c @@ -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;