Fix for light without current entity
This commit is contained in:
parent
3b296c43a0
commit
5e7082e72d
|
@ -339,7 +339,7 @@ R_LightPoint(vec3_t p, vec3_t color)
|
||||||
vec3_t dist;
|
vec3_t dist;
|
||||||
float add;
|
float add;
|
||||||
|
|
||||||
if (!r_worldmodel->lightdata)
|
if (!r_worldmodel->lightdata || !currententity)
|
||||||
{
|
{
|
||||||
color[0] = color[1] = color[2] = 1.0;
|
color[0] = color[1] = color[2] = 1.0;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue