From c377b07ef72574dcd5136df4c8e0ff57556dcda1 Mon Sep 17 00:00:00 2001 From: Garrett Cox Date: Fri, 26 Jan 2024 00:38:16 +0000 Subject: [PATCH] Fix en_mag pointer math (#105) --- mm/src/overlays/actors/ovl_En_Mag/z_en_mag.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm/src/overlays/actors/ovl_En_Mag/z_en_mag.c b/mm/src/overlays/actors/ovl_En_Mag/z_en_mag.c index f048aec74..9a5782532 100644 --- a/mm/src/overlays/actors/ovl_En_Mag/z_en_mag.c +++ b/mm/src/overlays/actors/ovl_En_Mag/z_en_mag.c @@ -556,7 +556,9 @@ void EnMag_DrawImageRGBA32(Gfx** gfxp, s16 centerX, s16 centerY, TexturePtr sour Gfx_SetupDL56_Ptr(&gfx); - curTexture = (uintptr_t)source; + // #region 2S2H [Port] Originally this was just a pointer to the texture, now it's the OTR path so we need to grab it's actual address + curTexture = ResourceMgr_LoadTexOrDListByName(source); + // #endregion rectLeft = centerX - (width / 2); rectTop = centerY - (height / 2); textureHeight = TMEM_SIZE / (width << 2);