if progsname is null, assume the progs are already loaded and just process

the data.
This commit is contained in:
Bill Currie 2001-06-01 21:14:50 +00:00
parent 7ad0f7ed2b
commit e699f6e888

View file

@ -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;