]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make sure event_damage is set before calling it
authorMario <mario@smbclan.net>
Fri, 10 Jun 2016 18:12:46 +0000 (04:12 +1000)
committerMario <mario@smbclan.net>
Fri, 10 Jun 2016 18:12:46 +0000 (04:12 +1000)
qcsrc/server/cl_client.qc

index dd5781984cdce19b130b5118c2e88db35a88e8d9..457822e8e406107d15721fe15eca3f223794470f 100644 (file)
@@ -2145,7 +2145,8 @@ void PlayerPreThink ()
                {
                        if (this.vehicle)
                                vehicles_exit(this.vehicle, VHEF_RELEASE);
-                       this.event_damage(this, this, this.frozen_by, 1, DEATH_NADE_ICE_FREEZE.m_id, this.origin, '0 0 0');
+                       if(this.event_damage)
+                               this.event_damage(this, this, this.frozen_by, 1, DEATH_NADE_ICE_FREEZE.m_id, this.origin, '0 0 0');
                }
                else if (this.revive_progress <= 0)
                        Unfreeze(this);