]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix a dumb mistake causing crashes
authorMario <mario@smbclan.net>
Sun, 17 Jun 2018 07:27:52 +0000 (17:27 +1000)
committerMario <mario@smbclan.net>
Sun, 17 Jun 2018 07:27:52 +0000 (17:27 +1000)
qcsrc/server/player.qc

index 73c78e7db12a7ddf86ff0847e5d72e64a06b39c3..cc58cdc6d7ca7e2bc493b9c2bd1518a3aaa3bbe2 100644 (file)
@@ -630,7 +630,7 @@ void PlayerDamage(entity this, entity inflictor, entity attacker, float damage,
 
                // set damage function to corpse damage
                this.event_damage = PlayerCorpseDamage;
-               this.event_damage = func_null;
+               this.event_heal = func_null;
                // call the corpse damage function just in case it wants to gib
                this.event_damage(this, inflictor, attacker, excess, deathtype, weaponentity, hitloc, force);