Fix bug in for condition

This commit is contained in:
Arthur Petukhovsky 2020-03-22 20:19:39 +03:00
parent d9291887f8
commit ef7acf3190

View File

@ -116,7 +116,7 @@ SmartPolygonDictionary::SmartPolygonDictionary(
: IPolygonDictionary(database_, name_, dict_struct_, std::move(source_ptr_), dict_lifetime_, input_type_, point_type_)
{
buckets.reserve(polygons.size());
for (size_t i = 0; i < buckets.size(); ++i)
for (size_t i = 0; i < polygons.size(); ++i)
{
buckets.emplace_back(std::vector<Polygon>{polygons[i]});
}