mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
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:
parent
5764597646
commit
28be10396d
1 changed files with 10 additions and 3 deletions
|
@ -1409,9 +1409,16 @@ 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];
|
||||
}
|
||||
|
||||
VectorCopy(model->mins, ent->v->mins);
|
||||
VectorCopy(model->maxs, ent->v->maxs);
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue