X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmaterials%2Flighting.cpp;h=91bc4d064b5afaef528057a2a654f2e8a11f7197;hb=006bdb4f8660098fc524dcca80b24c943c65b249;hp=699aabc02c7daa8679d60b2ab6fd8eaf8d99723b;hpb=3ac3a51c623271da815c8ee60c484445871753bf;p=libs%2Fgl.git 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); }