client: fix weird crash in spectator code during engine initialize
This commit is contained in:
parent
7c08f36bcf
commit
524f4874a8
@ -119,7 +119,7 @@ void CHudSpectator::SetSpectatorStartPosition()
|
||||
|
||||
cl_entity_t * pEnt = gEngfuncs.GetEntityByIndex( 0 ); // get world model
|
||||
|
||||
if ( pEnt )
|
||||
if ( pEnt && pEnt->model && pEnt->model->entities )
|
||||
{
|
||||
char *data;
|
||||
char keyname[256];
|
||||
|
Loading…
Reference in New Issue
Block a user