From c4a993b679dd18ab921abf1edfcc50d7cf20b76b Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 15 Mar 2012 12:39:49 +0200 Subject: [PATCH] Fix a crash caused by display digits --- data/qcsrc/server/cl_weapons.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/qcsrc/server/cl_weapons.qc b/data/qcsrc/server/cl_weapons.qc index c72add36..2265e635 100644 --- a/data/qcsrc/server/cl_weapons.qc +++ b/data/qcsrc/server/cl_weapons.qc @@ -320,7 +320,7 @@ void W_DisplayDigitThink() w_ammo = self.owner.(self.owner.current_ammo); // the owner has switched to another weapon, remove the digits - if(!self.owner.display_setup) + if(!self.owner.display_setup || !self.owner.weapon) { self.nextthink = 0; remove(self); -- 2.39.2