From 500679555f44bf4dd8f9b1ba00e470a2046e1d30 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 11 Dec 2015 07:10:29 +1000 Subject: [PATCH] Add a check to make sure it can't crash (though, something to make sure player actually dies may be needed) --- qcsrc/server/cl_client.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 89cb27185..df1b6446f 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -1588,7 +1588,8 @@ void player_regen () { if(self.vehicle) vehicles_exit(VHEF_RELEASE); - self.event_damage(self, self, 1, DEATH_ROT.m_id, self.origin, '0 0 0'); + if(self.event_damage) + self.event_damage(self, self, 1, DEATH_ROT.m_id, self.origin, '0 0 0'); } if (!(self.items & IT_UNLIMITED_WEAPON_AMMO)) -- 2.39.2