engine: client: fix possible NULL dereference when setting up bbox for non-solid visent that somehow doesn't have a model
This commit is contained in:
parent
5f3e167799
commit
3756361cfe
1 changed files with 1 additions and 1 deletions
|
@ -344,7 +344,7 @@ static void CL_CopyEntityToPhysEnt( physent_t *pe, entity_state_t *state, qboole
|
|||
}
|
||||
|
||||
// rare case: not solid entities in vistrace
|
||||
if( visent && VectorIsNull( pe->mins ))
|
||||
if( visent && VectorIsNull( pe->mins ) && mod != NULL )
|
||||
{
|
||||
VectorCopy( mod->mins, pe->mins );
|
||||
VectorCopy( mod->maxs, pe->maxs );
|
||||
|
|
Loading…
Add table
Reference in a new issue