engine: common: zone: make Mem_Alloc return aligned addresses on ILP32, thanks Xav101 on Discord for heads up

This commit is contained in:
Alibek Omarov 2023-01-12 04:02:04 +03:00
parent 2f5e3b0aea
commit 9b5e0fef01
1 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,9 @@ typedef struct memheader_s
size_t size; // size of the memory after the header (excluding header and sentinel2)
const char *filename; // file name and line where Mem_Alloc was called
uint fileline;
#if !XASH_64BIT
uint pad0; // doesn't have value, only to make Mem_Alloc return aligned addresses on ILP32
#endif
uint sentinel1; // should always be MEMHEADER_SENTINEL1
// immediately followed by data, which is followed by a MEMHEADER_SENTINEL2 byte