]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 6429ff899325e504aa99aeb398e9bc5da19a634c..3bfca807525bebede91426046a16cc8727ec4b37 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;