From 6422652191186cc34995a9c837bad8cd3a545b69 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 10 May 2012 18:54:07 +0000 Subject: [PATCH] Fix hexen2 crash-on-starting-a-map. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4042 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_ents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/server/sv_ents.c b/engine/server/sv_ents.c index 3e7a509bb..1b1bd6cc5 100644 --- a/engine/server/sv_ents.c +++ b/engine/server/sv_ents.c @@ -2760,7 +2760,7 @@ void SV_Snapshot_BuildStateQ1(entity_state_t *state, edict_t *ent, client_t *cli state->lightstyle = ent->xv->style; state->lightpflags = ent->xv->pflags; - if (((int)ent->v->flags & FL_CLASS_DEPENDENT) && client->playerclass) //hexen2 wierdness. + if (((int)ent->v->flags & FL_CLASS_DEPENDENT) && client && client->playerclass) //hexen2 wierdness. { char modname[MAX_QPATH]; Q_strncpyz(modname, sv.strings.model_precache[state->modelindex], sizeof(modname));