ref: 6665b45dd8a485123b34f12cdb6963d2c2c63a9e
parent: 7955211a31c09579beb3f3e2da95902bb07b6c62
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
@@ -1091,6 +1091,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);