diff --git a/simgear/scene/tgdb/SGDirectionalLightBin.hxx b/simgear/scene/tgdb/SGDirectionalLightBin.hxx index 4b2be508..ad919be4 100644 --- a/simgear/scene/tgdb/SGDirectionalLightBin.hxx +++ b/simgear/scene/tgdb/SGDirectionalLightBin.hxx @@ -64,8 +64,7 @@ public: LightList sortedLights; sortedLights.reserve(_lights.size()); - LightSet::const_iterator i; - for (i = lightSet.begin(); i != lightSet.end(); ++i) + for (LightSet::const_iterator i = lightSet.begin(); i != lightSet.end(); ++i) sortedLights.push_back(*i); return sortedLights;