From e699f6e888d10852c20c97a84944856405015dee Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 1 Jun 2001 21:14:50 +0000 Subject: [PATCH] if progsname is null, assume the progs are already loaded and just process the data. --- libs/gamecode/pr_edict.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/gamecode/pr_edict.c b/libs/gamecode/pr_edict.c index 433b8af95..7af71ca2c 100644 --- a/libs/gamecode/pr_edict.c +++ b/libs/gamecode/pr_edict.c @@ -989,7 +989,10 @@ PR_LoadProgs (progs_t * pr, char *progsname) for (i = 0; i < GEFV_CACHESIZE; i++) gefvCache[i].field[0] = 0; - pr->progs = (dprograms_t *) COM_LoadHunkFile (progsname); + if (progsname) + pr->progs = (dprograms_t *) COM_LoadHunkFile (progsname); + else + progsname = "(preloaded)"; if (!pr->progs) return;