summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorKevin Alexis Contreras <36680385+KiritoDv@users.noreply.github.com>2022-06-19 02:03:04 -0500
committerKevin Alexis Contreras <36680385+KiritoDv@users.noreply.github.com>2022-06-19 02:03:04 -0500
commite945a86d46d93bc1c27ae06fee44786de9e76255 (patch)
tree9443533805bb028de6f2975f396ffd9593e68b74 /soh/src/code
parent8a6ee00a2120c715baea71b141c11405be08a7c4 (diff)
Added fixes based on the reviews
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_bgcheck.c4
1 files changed, 2 insertions, 2 deletions
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 +