ref: 6ec1defca988454ab5f0d4f98ea0a12c9e39a5f3
parent: b8e4e7db10724ef2fd64ccc21dad5e4a2f3fb811
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Mon Oct 14 15:19:56 EDT 2024
pr_edict.c: align edicts to 8 bytes
--- a/pr_edict.c
+++ b/pr_edict.c
@@ -1132,6 +1132,7 @@
pl = &lumps[PR_LUMP_FIELDDEFS];
PR_FieldDefs(pr, in0 + pl->off, pl->num);
pr->edict_size = pr->entityfields*4 + sizeof(edict_t) - sizeof(entvars_t);
+ pr->edict_size = (pr->edict_size + 7) & ~7;
Con_DPrintf("Programs occupy %dK.\n", n/1024);