]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Fix a crash caused by display digits
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 15 Mar 2012 10:39:49 +0000 (12:39 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 15 Mar 2012 10:39:49 +0000 (12:39 +0200)
data/qcsrc/server/cl_weapons.qc

index c72add36e031625a72904f0abbb7f83864c4d4c0..2265e6359ba91bb8ef6c0b23dc1d03b4bcfaf01b 100644 (file)
@@ -320,7 +320,7 @@ void W_DisplayDigitThink()
        w_ammo = self.owner.(self.owner.current_ammo);\r
 \r
        // the owner has switched to another weapon, remove the digits\r
-       if(!self.owner.display_setup)\r
+       if(!self.owner.display_setup || !self.owner.weapon)\r
        {\r
                self.nextthink = 0;\r
                remove(self);\r