Fix a segfault when searching for dlights.

Uninitialized var bites my bum :P
This commit is contained in:
Bill Currie 2012-05-11 15:39:41 +09:00
parent 2e98c31175
commit bea8f8f9c4

View file

@ -60,6 +60,7 @@ R_FindNearLights (const vec3_t pos, int count)
int num = 0, j;
vec3_t d;
dl = r_dlights;
for (i = 0; i < r_maxdlights; i++, dl++) {
if (dl->die < vr_data.realtime || !dl->radius)
continue;