From e31e35658dd08e9f983eef8aef0e239ecd603333 Mon Sep 17 00:00:00 2001 From: louist103 <35883445+louist103@users.noreply.github.com> Date: Sun, 12 Sep 2021 07:02:45 -0400 Subject: Fix return UB (#958) * Ydan_SP * func_8002D7EC * Gameplay_ChangeCameraStatus * Graph_InitTHGA * CollisioCheck_LineOC * Fix more in camera and jpeg * revert comment in player --- src/code/graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/code/graph.c') diff --git a/src/code/graph.c b/src/code/graph.c index d11b2e22e..ad960cf06 100644 --- a/src/code/graph.c +++ b/src/code/graph.c @@ -79,7 +79,7 @@ void Graph_UCodeFaultClient(Gfx* workBuf) { UCodeDisas_Destroy(&disassembler); } -void* Graph_InitTHGA(GraphicsContext* gfxCtx) { +void Graph_InitTHGA(GraphicsContext* gfxCtx) { GfxPool* pool = &gGfxPools[gfxCtx->gfxPoolIdx & 1]; pool->headMagic = GFXPOOL_HEAD_MAGIC; -- cgit v1.2.3