mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
Fix a segfault when searching for dlights.
Uninitialized var bites my bum :P
This commit is contained in:
parent
2e98c31175
commit
bea8f8f9c4
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue