fixed load-game crash.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5034 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2016-12-21 15:45:55 +00:00
parent 03d96bff72
commit 8c0ac181d2

View file

@ -1961,7 +1961,8 @@ int PDECL PR_LoadEnts(pubprogfuncs_t *ppf, const char *file, void *ctx, void (PD
externs->entspawn((struct edict_s *) ed, true);
file = ED_ParseEdict(progfuncs, file, ed);
callback(ppf, (struct edict_s *)ed, ctx, datastart, file);
if (callback)
callback(ppf, (struct edict_s *)ed, ctx, datastart, file);
}
else if (!strcmp(qcc_token, "progs"))
{