fix error

This commit is contained in:
Anton Kvasha 2020-05-06 19:41:14 +03:00
parent 16eaaba313
commit 2672492baf

View File

@ -237,6 +237,7 @@ void IPolygonDictionary::loadData()
return areas[lhs.second] < areas[rhs.second];
});
std::vector<size_t> correct_ids;
correct_ids.reserve(polygon_ids.size());
for (size_t i = 0; i < polygon_ids.size(); ++i) {
auto & polygon = polygon_ids[i];
correct_ids.emplace_back(ids[polygon.second]);