]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix crash in CTF caused by improper player check #1574
authorSamual Lenks <samual@xonotic.org>
Sun, 19 May 2013 03:03:44 +0000 (23:03 -0400)
committerSamual Lenks <samual@xonotic.org>
Sun, 19 May 2013 03:03:44 +0000 (23:03 -0400)
qcsrc/server/mutators/gamemode_ctf.qc

index bc19d88ebb7bc1899ce203c1f6c462e3bc96c46c..8daed9205142c77a4556dd196787b140933e448b 100644 (file)
@@ -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);