From c3e450122c9f5d16307e6a1afbbf6899dd909e0c 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 4603acc4..511bae2c 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;