diff --git a/doomsday/client/include/world/line.h b/doomsday/client/include/world/line.h index 5fd4d6096e..8962a2e017 100644 --- a/doomsday/client/include/world/line.h +++ b/doomsday/client/include/world/line.h @@ -532,7 +532,7 @@ class Line : public de::MapElement * * @param newCount New shadow vis count. */ - void setShadowVisCount(int newCount) const; + void setShadowVisCount(int newCount); #ifdef __CLIENT__ diff --git a/doomsday/client/src/render/rend_fakeradio.cpp b/doomsday/client/src/render/rend_fakeradio.cpp index 6f95b045ec..9d74cede79 100644 --- a/doomsday/client/src/render/rend_fakeradio.cpp +++ b/doomsday/client/src/render/rend_fakeradio.cpp @@ -1328,7 +1328,8 @@ void Rend_RadioBspLeafEdges(BspLeaf const &bspLeaf) // We need to check all the shadow lines linked to this BspLeaf for // the purpose of fakeradio shadowing. - foreach(LineSide const *side, bspLeaf.shadowLines()) + BspLeaf::ShadowLines const &shadowLines = bspLeaf.shadowLines(); + foreach(LineSide *side, shadowLines) { // Already rendered during the current frame? We only want to // render each shadow once per frame. diff --git a/doomsday/client/src/world/line.cpp b/doomsday/client/src/world/line.cpp index 6fcf09adb1..8ad270904b 100644 --- a/doomsday/client/src/world/line.cpp +++ b/doomsday/client/src/world/line.cpp @@ -666,7 +666,7 @@ int Line::Side::shadowVisCount() const return d->shadowVisCount; } -void Line::Side::setShadowVisCount(int newCount) const +void Line::Side::setShadowVisCount(int newCount) { d->shadowVisCount = newCount; }