Ensure progs zone is always set on load

This commit is contained in:
Bill Currie 2020-02-25 00:25:24 +09:00
parent 256dee98a1
commit 99c818adcc

View file

@ -212,6 +212,7 @@ PR_LoadProgsFile (progs_t *pr, QFile *file, int size)
*pr->edicts = (edict_t *)((byte *) pr->progs + pr->progs_size);
}
pr->zone = 0;
if (pr->zone_size) {
//FIXME zone_size needs to be at least as big as memzone_t, but
//memzone_t is opaque so its size is unknown