diff --git a/libs/gamecode/engine/pr_edict.c b/libs/gamecode/engine/pr_edict.c index 815ec3ebe..7efb30495 100644 --- a/libs/gamecode/engine/pr_edict.c +++ b/libs/gamecode/engine/pr_edict.c @@ -1227,6 +1227,9 @@ PR_LoadProgs (progs_t *pr, const char *progsname) if (!progsname) progsname = "(preloaded)"; + if (!PR_ResolveGlobals (pr)) + PR_Error (pr, "unable to load %s", progsname); + // initialise the strings managment code PR_LoadStrings (pr);