mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-21 19:51:33 +00:00
Fix crash in JKA
This commit is contained in:
parent
0698ac2d28
commit
bf3006da46
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue