diff --git a/src/gl/compatibility/gl_20.cpp b/src/gl/compatibility/gl_20.cpp index 431f6bfe96..27f08a3448 100644 --- a/src/gl/compatibility/gl_20.cpp +++ b/src/gl/compatibility/gl_20.cpp @@ -484,7 +484,7 @@ bool GLWall::PutWallCompat(int passflag) } else if (sub) { - if (sub->lighthead != nullptr) return false; + if (sub->lighthead == nullptr) return false; } bool foggy = !gl_isBlack(Colormap.FadeColor) || (level.flags&LEVEL_HASFADETABLE) || gl_lights_additive;