Fix crash in JKA

This commit is contained in:
Simon 2023-12-12 22:46:36 +00:00
parent 0698ac2d28
commit bf3006da46
3 changed files with 3 additions and 3 deletions

View file

@ -3488,7 +3488,7 @@ void CG_FireWeapon( centity_t *cent, qboolean alt_fire )
}
//Are we the player?
if (cent->gent->client->ps.clientNum == 0)
if (cent->gent->client && cent->gent->client->ps.clientNum == 0)
{
/*
These are specific to external haptics vest/arms/face combinations

View file

@ -1452,7 +1452,7 @@ static inline qboolean G_RagWantsHumanoidsOnly( CGhoul2Info *ghlInfo )
{
char *GLAName;
GLAName = gi.G2API_GetGLAName( ghlInfo );
assert(GLAName);
//assert(GLAName);
if ( !Q_stricmp( "models/players/_humanoid/_humanoid", GLAName ) )
{//only _humanoid skeleton is expected to have these

View file

@ -3293,7 +3293,7 @@ void CG_FireWeapon( centity_t *cent, qboolean alt_fire )
}
//Are we the player?
if (cent->gent->client->ps.clientNum == 0)
if (cent->gent->client && cent->gent->client->ps.clientNum == 0)
{
/*
These are specific to external haptics vest/arms/face combinations