From 8c0ac181d273c239cb930702d6bd83a5c63206a7 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 21 Dec 2016 15:45:55 +0000 Subject: [PATCH] fixed load-game crash. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5034 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/qclib/pr_edict.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/qclib/pr_edict.c b/engine/qclib/pr_edict.c index 4939a7c99..885cc0554 100644 --- a/engine/qclib/pr_edict.c +++ b/engine/qclib/pr_edict.c @@ -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")) {