From 236be5f9e59cda90770537c666e53669bb26b75a Mon Sep 17 00:00:00 2001 From: InspirationByte Date: Fri, 4 Feb 2022 00:00:11 +0300 Subject: [PATCH] - aligned D_MALLOC --- src_rebuild/Game/C/system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src_rebuild/Game/C/system.h b/src_rebuild/Game/C/system.h index 259a54cb..5ab055e3 100644 --- a/src_rebuild/Game/C/system.h +++ b/src_rebuild/Game/C/system.h @@ -66,7 +66,7 @@ extern void sys_freeall(); #endif #else -#define D_MALLOC(size) (char*)mallocptr; mallocptr += (size);// (char*)((int)mallocptr + size + 3 & 0xfffffffc); +#define D_MALLOC(size) (char*)mallocptr; mallocptr += (((size) + 3) & -4); #define D_TEMPALLOC(size) (char*)mallocptr #define D_TEMPFREE() #endif