Merge pull request #29 from coltongit/patch-1

Fix save corruption in some 64-bit builds
This commit is contained in:
Vinícius R. Miguel 2020-05-09 21:17:15 -03:00 committed by GitHub
commit b43313974c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -306,7 +306,7 @@ void rendering_init(void) {
} }
void config_gfx_pool(void) { void config_gfx_pool(void) {
gGfxPool = &gGfxPools[gGlobalTimer % 2]; gGfxPool = &gGfxPools[gGlobalTimer % GFX_NUM_POOLS];
set_segment_base_addr(1, gGfxPool->buffer); set_segment_base_addr(1, gGfxPool->buffer);
gGfxSPTask = &gGfxPool->spTask; gGfxSPTask = &gGfxPool->spTask;
gDisplayListHead = gGfxPool->buffer; gDisplayListHead = gGfxPool->buffer;