Ensure edict_parse is reset on progs load

A server switching from a game that sets edict_parse to one that does
not could go badly when it comes time to loading a level.
This commit is contained in:
Bill Currie 2020-02-25 14:40:03 +09:00
parent 9bb68f2d8c
commit 6e56c9a4aa

View file

@ -188,6 +188,7 @@ PR_LoadProgsFile (progs_t *pr, QFile *file, int size)
pr->pr_edict_size = align_size (pr->pr_edict_size);
pr->pr_edictareasize = pr->max_edicts * pr->pr_edict_size;
pr->edict_parse = 0;
mem_size = pr->progs_size + pr->zone_size + pr->pr_edictareasize
+ pr->stack_size;