mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 04:12:39 +00:00
fix potential segfault (found by DerSaidin in xreal)
This commit is contained in:
parent
f5aae78481
commit
f2198c70e7
1 changed files with 2 additions and 1 deletions
|
@ -974,7 +974,8 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker,
|
|||
}
|
||||
|
||||
// add to the attacker's hit counter (if the target isn't a general entity like a prox mine)
|
||||
if ( attacker->client && targ != attacker && targ->health > 0
|
||||
if ( attacker->client && client
|
||||
&& targ != attacker && targ->health > 0
|
||||
&& targ->s.eType != ET_MISSILE
|
||||
&& targ->s.eType != ET_GENERAL) {
|
||||
if ( OnSameTeam( targ, attacker ) ) {
|
||||
|
|
Loading…
Reference in a new issue