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:
Alibek Omarov 2024-11-05 22:43:29 +03:00
parent 5f3e167799
commit 3756361cfe

View file

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