diff --git a/ref_gl/gl_rsurf.c b/ref_gl/gl_rsurf.c index 91acd821..e01fa722 100644 --- a/ref_gl/gl_rsurf.c +++ b/ref_gl/gl_rsurf.c @@ -2910,7 +2910,7 @@ static qboolean R_CheckLightMap( msurface_t *fa ) } // already up to date - if( !is_dynamic && ( fa->dlightframe != tr.framecount || maps == MAX_LIGHTMAPS ) ) + if( !is_dynamic && ( fa->dlightframe != tr.framecount || maps == MAXLIGHTMAPS ) ) return false; // build lightmap