diff --git a/libs/video/renderer/r_light.c b/libs/video/renderer/r_light.c index 83ac596d5..551885bfe 100644 --- a/libs/video/renderer/r_light.c +++ b/libs/video/renderer/r_light.c @@ -61,6 +61,7 @@ R_MaxDlightsCheck (cvar_t *var) if (r_dlights) free (r_dlights); + r_dlights=0; if (r_maxdlights)