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
This commit is contained in:
Spoike 2012-05-10 18:54:07 +00:00
parent 768b58b9ec
commit 6422652191

View file

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