From: Mario Date: Sat, 9 Jan 2016 14:43:41 +0000 (+1000) Subject: Potential fix for a crash X-Git-Tag: xonotic-v0.8.2~1252 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c29f1c40da6f2e894fd54768b92ec27e02c93dee;p=xonotic%2Fxonotic-data.pk3dir.git Potential fix for a crash --- diff --git a/qcsrc/common/weapons/all.qh b/qcsrc/common/weapons/all.qh index 6429ff899..3bfca8075 100644 --- a/qcsrc/common/weapons/all.qh +++ b/qcsrc/common/weapons/all.qh @@ -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;