Fix possible crash on JK2

This commit is contained in:
Simon 2023-03-26 16:31:53 +01:00
parent f6dc432f6a
commit 134dec8264

View file

@ -725,7 +725,7 @@ void BG_CalculateVRSaberPosition( vec3_t origin, vec3_t angles )
bool BG_UseVRPosition( gentity_t *ent )
{
return ( ent->client && (!ent->NPC || ent->client->ps.clientNum == cg_entities[0].gent->client->ps.viewEntity));
return ( ent->client && ent->client->ps.clientNum == 0);
}
/*