Potential fix for a crash
authorMario <mario@smbclan.net>
Sat, 9 Jan 2016 14:43:41 +0000 (00:43 +1000)
committerMario <mario@smbclan.net>
Sat, 9 Jan 2016 14:43:41 +0000 (00:43 +1000)
qcsrc/common/weapons/all.qh

index 6429ff8..3bfca80 100644 (file)
@@ -327,6 +327,8 @@ STATIC_INIT(register_weapons_done)
 .entity exteriorweaponentity;
 vector weaponentity_glowmod(Weapon wep, int c)
 {
+    if(!wep)
+        return '1 1 1'; // ???
     vector g;
     if (!(g = wep.wr_glow(wep))) g = colormapPaletteColor(c & 0x0F, true) * 2;
     return g;