Fix crash in JKA

This commit is contained in:
Simon 2023-03-26 16:32:49 +01:00
parent 1e4692d04a
commit 74dcd955d2

View file

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