From c439027bb2f8abd307151395a730a110d20cb134 Mon Sep 17 00:00:00 2001 From: TimePath Date: Tue, 22 Mar 2016 12:07:36 +1100 Subject: [PATCH] Check for null Closes #1702 --- qcsrc/server/weapons/weaponsystem.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/server/weapons/weaponsystem.qc b/qcsrc/server/weapons/weaponsystem.qc index 1a2aaeafa..7cf26a459 100644 --- a/qcsrc/server/weapons/weaponsystem.qc +++ b/qcsrc/server/weapons/weaponsystem.qc @@ -152,7 +152,8 @@ void CL_ExteriorWeaponentity_Think() else if (this.owner.alpha != 0) this.alpha = this.owner.alpha; else this.alpha = 1; - this.glowmod = weaponentity_glowmod(PS(this.owner).m_weapon, this.owner.clientcolors); + Weapon wep = PS(this.owner).m_weapon; + if (wep) this.glowmod = weaponentity_glowmod(wep, this.owner.clientcolors); this.colormap = this.owner.colormap; CSQCMODEL_AUTOUPDATE(this); -- 2.39.2