From: Mario Date: Sun, 17 Jun 2018 07:27:52 +0000 (+1000) Subject: Fix a dumb mistake causing crashes X-Git-Tag: xonotic-v0.8.5~2022^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=280b404a7c0b3d71a0fad202bb3ad85b405ab60d;p=xonotic%2Fxonotic-data.pk3dir.git Fix a dumb mistake causing crashes --- diff --git a/qcsrc/server/player.qc b/qcsrc/server/player.qc index 73c78e7db..cc58cdc6d 100644 --- a/qcsrc/server/player.qc +++ b/qcsrc/server/player.qc @@ -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);