From: MirceaKitsune Date: Thu, 15 Mar 2012 10:39:49 +0000 (+0200) Subject: Fix a crash caused by display digits X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c4a993b679dd18ab921abf1edfcc50d7cf20b76b;p=voretournament%2Fvoretournament.git Fix a crash caused by display digits --- 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);