summaryrefslogtreecommitdiff
path: root/src/game/g_weapon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_weapon.c')
-rw-r--r--src/game/g_weapon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_weapon.c b/src/game/g_weapon.c
index 9e6db0ab..0f06a19b 100644
--- a/src/game/g_weapon.c
+++ b/src/game/g_weapon.c
@@ -644,9 +644,9 @@ qboolean CheckVenomAttack( gentity_t *ent ) {
if( !traceEnt->takedamage)
return qfalse;
- if( traceEnt->biteam == PTE_DROIDS )
+ if( !traceEnt->client )
return qfalse;
- if( traceEnt->client && traceEnt->client->ps.stats[ STAT_PTEAM ] == PTE_DROIDS )
+ if( traceEnt->client->ps.stats[ STAT_PTEAM ] == PTE_DROIDS )
return qfalse;
G_Damage( traceEnt, ent, ent, forward, tr.endpos, 5, 0, MOD_VENOM );