From: Mario Date: Fri, 10 Jun 2016 18:12:46 +0000 (+1000) Subject: Make sure event_damage is set before calling it X-Git-Tag: xonotic-v0.8.2~834 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=35930e83aca8f29eaa91a457ddb70d1c10dd6f51;p=xonotic%2Fxonotic-data.pk3dir.git Make sure event_damage is set before calling it --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index dd5781984..457822e8e 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -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);