diff --git a/doomsday/apps/client/src/render/rend_main.cpp b/doomsday/apps/client/src/render/rend_main.cpp index a372de9826..d9bbfcbcbd 100644 --- a/doomsday/apps/client/src/render/rend_main.cpp +++ b/doomsday/apps/client/src/render/rend_main.cpp @@ -789,10 +789,9 @@ static void lightVertex(Vector4f &color, Vector3f const &vtx, dfloat lightLevel, Rend_ApplyLightAdaptation(lightLevel); - for(dint i = 0; i < 3; ++i) - { - color[i] = lightLevel * ambientColor[i]; - } + color.x = lightLevel * ambientColor.x; + color.y = lightLevel * ambientColor.y; + color.z = lightLevel * ambientColor.z; } /**