X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Flighting.cpp;h=91bc4d064b5afaef528057a2a654f2e8a11f7197;hp=699aabc02c7daa8679d60b2ab6fd8eaf8d99723b;hb=e9a898f315b5d1396f196d785913a283c30940f2;hpb=bdef3de6559629f25121de2e014383d7f773266b diff --git a/source/materials/lighting.cpp b/source/materials/lighting.cpp index 699aabc0..91bc4d06 100644 --- a/source/materials/lighting.cpp +++ b/source/materials/lighting.cpp @@ -74,7 +74,7 @@ void Lighting::attach(const Light &l) void Lighting::detach(const Light &l) { - vector::iterator i = find_member(lights, &l, &AttachedLight::light); + auto i = find_member(lights, &l, &AttachedLight::light); if(i!=lights.end()) lights.erase(i); }