From 1c86dca5816afddcb266adc013977b9348650a55 Mon Sep 17 00:00:00 2001 From: "Colton G. Rushton" Date: Sat, 9 May 2020 21:13:57 -0300 Subject: [PATCH] Fix save corruption in some 64-bit builds --- src/game/game_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/game_init.c b/src/game/game_init.c index 4603acc..511bae2 100644 --- a/src/game/game_init.c +++ b/src/game/game_init.c @@ -306,7 +306,7 @@ void rendering_init(void) { } void config_gfx_pool(void) { - gGfxPool = &gGfxPools[gGlobalTimer % 2]; + gGfxPool = &gGfxPools[gGlobalTimer % GFX_NUM_POOLS]; set_segment_base_addr(1, gGfxPool->buffer); gGfxSPTask = &gGfxPool->spTask; gDisplayListHead = gGfxPool->buffer;