fix: fixed compilation error when OW_GFX_COMPRESS is FALSE

This commit is contained in:
Ariel A 2025-01-29 23:12:45 -05:00
parent 8933b84e1c
commit bc421740e8

View File

@ -2041,8 +2041,9 @@ static void RefreshFollowerGraphics(struct ObjectEvent *objEvent) {
sprite->y += -(graphicsInfo->height >> 1) - sprite->centerToCornerVecY;
}
if (OW_GFX_COMPRESS)
LoadSheetGraphicsInfo(graphicsInfo, objEvent->graphicsId, sprite);
#if OW_GFX_COMPRESS
LoadSheetGraphicsInfo(graphicsInfo, objEvent->graphicsId, sprite);
#endif
sprite->oam.shape = graphicsInfo->oam->shape;
sprite->oam.size = graphicsInfo->oam->size;