1
0
Fork 0
forked from fte/fteqw

Fix a small crashing bug with csqc.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1462 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-10-10 21:04:19 +00:00
parent 5764597646
commit 28be10396d

View file

@ -1409,10 +1409,17 @@ static void csqc_setmodel(progfuncs_t *prinst, csqcedict_t *ent, int modelindex)
ent->v->model = PR_SetString(prinst, cl.model_name[modelindex]);
model = cl.model_precache[modelindex];
}
if (model)
{
VectorCopy(model->mins, ent->v->mins);
VectorCopy(model->maxs, ent->v->maxs);
}
else
{
VectorClear(ent->v->mins);
VectorClear(ent->v->maxs);
}
}
static void PF_cs_SetModel(progfuncs_t *prinst, struct globalvars_s *pr_globals)
{