mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-11 06:32:10 +08:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user