diff --git a/src/gl/compatibility/gl_20.cpp b/src/gl/compatibility/gl_20.cpp index 957a73f4ab..431f6bfe96 100644 --- a/src/gl/compatibility/gl_20.cpp +++ b/src/gl/compatibility/gl_20.cpp @@ -673,7 +673,7 @@ void GLFlat::DrawLightsCompat(int pass) while (node) { - DrawSubsectorLights(sub, pass); + DrawSubsectorLights(node->sub, pass); node = node->next; } }