diff --git a/engine/qclib/comprout.c b/engine/qclib/comprout.c index e42d72098..a2a7a3bd8 100644 --- a/engine/qclib/comprout.c +++ b/engine/qclib/comprout.c @@ -26,6 +26,8 @@ int qcchunksize; char *qcchunk; void *qccHunkAlloc(size_t mem) { + mem = (mem + 7)&~7; + qccalloced+=mem; if (qccalloced > qcchunksize) QCC_Error(ERR_INTERNAL, "Compile hunk was filled");