mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
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:
parent
768b58b9ec
commit
6422652191
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue