From: Samual Lenks Date: Sun, 19 May 2013 03:03:44 +0000 (-0400) Subject: Fix crash in CTF caused by improper player check #1574 X-Git-Tag: xonotic-v0.7.0~42 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=48b82202b97c670f64ef6c75546793b909692f54;p=xonotic%2Fxonotic-data.pk3dir.git Fix crash in CTF caused by improper player check #1574 --- diff --git a/qcsrc/server/mutators/gamemode_ctf.qc b/qcsrc/server/mutators/gamemode_ctf.qc index bc19d88eb..8daed9205 100644 --- a/qcsrc/server/mutators/gamemode_ctf.qc +++ b/qcsrc/server/mutators/gamemode_ctf.qc @@ -1780,7 +1780,7 @@ MUTATOR_HOOKFUNCTION(ctf_PlayerDamage) // for changing damage and force values t MUTATOR_HOOKFUNCTION(ctf_PlayerDies) { - if((frag_attacker != frag_target) && (IS_PLAYER(frag_target)) && (frag_target.flagcarried)) + if((frag_attacker != frag_target) && (IS_PLAYER(frag_attacker)) && (frag_target.flagcarried)) { PlayerTeamScore_AddScore(frag_attacker, autocvar_g_ctf_score_kill); PlayerScore_Add(frag_attacker, SP_CTF_FCKILLS, 1);