Fix for light without current entity

This commit is contained in:
Denis Pauk 2019-02-12 22:39:55 +02:00
parent 3b296c43a0
commit 5e7082e72d

View file

@ -339,7 +339,7 @@ R_LightPoint(vec3_t p, vec3_t color)
vec3_t dist;
float add;
if (!r_worldmodel->lightdata)
if (!r_worldmodel->lightdata || !currententity)
{
color[0] = color[1] = color[2] = 1.0;
return;