From e945a86d46d93bc1c27ae06fee44786de9e76255 Mon Sep 17 00:00:00 2001 From: Kevin Alexis Contreras <36680385+KiritoDv@users.noreply.github.com> Date: Sun, 19 Jun 2022 02:03:04 -0500 Subject: Added fixes based on the reviews --- soh/src/code/z_bgcheck.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'soh/src/code') diff --git a/soh/src/code/z_bgcheck.c b/soh/src/code/z_bgcheck.c index f305eab23..130351f42 100644 --- a/soh/src/code/z_bgcheck.c +++ b/soh/src/code/z_bgcheck.c @@ -1585,8 +1585,8 @@ void BgCheck_Allocate(CollisionContext* colCtx, GlobalContext* globalCtx, Collis BgCheck_SetSubdivisionDimension(colCtx->minBounds.z, colCtx->subdivAmount.z, &colCtx->maxBounds.z, &colCtx->subdivLength.z, &colCtx->subdivLengthInv.z); -#ifdef _SOH64 - colCtx->memSize *= (sizeof(void*) / 4); +#ifdef _SOH64 // BGCheck needs more memory on 64 bits because it crashes on some areas + colCtx->memSize *= 2; #endif memSize = colCtx->subdivAmount.x * sizeof(StaticLookup) * colCtx->subdivAmount.y * colCtx->subdivAmount.z + -- cgit v1.2.3