]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix potential for crashing in freezetag
authorMario <mario@smbclan.net>
Sun, 28 Aug 2016 16:48:51 +0000 (02:48 +1000)
committerMario <mario@smbclan.net>
Sun, 28 Aug 2016 16:48:51 +0000 (02:48 +1000)
qcsrc/server/mutators/mutator/gamemode_freezetag.qc

index 602a55b6b5356023face33cdc71b65587c2046b6..cd7372699004bd93fe18e482e69d552e5b24f27d 100644 (file)
@@ -334,7 +334,7 @@ MUTATOR_HOOKFUNCTION(ft, PlayerDies)
 {
        entity frag_attacker = M_ARGV(1, entity);
        entity frag_target = M_ARGV(2, entity);
-       float frag_deathtype = M_ARGV(2, float);
+       float frag_deathtype = M_ARGV(3, float);
 
        if(round_handler_IsActive())
        if(round_handler_CountdownRunning())