ref: 9d7854adca6f7c7bd9f83173e3ac4b0842b2aca1
parent: b06965ffd80e9f3c53e28fec79c1aedf9618f7c7
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Fri Dec 22 14:36:33 EST 2023
progs: set numglobaldefs
--- a/pr_edict.c
+++ b/pr_edict.c
@@ -1107,6 +1107,7 @@
pl = &lumps[PR_LUMP_GLOBALDEFS];
pr->globaldefs = Hunk_Alloc(pl->num * sizeof(*pr->globaldefs));
+ pr->numglobaldefs = pl->num;
for(i = 0, in = in0 + pl->off; i < pl->num; i++){
// FIXME(sigrid): verify all of these as well
pr->globaldefs[i].type = le16u(in);