forked from organicmaps/organicmaps-tmp
[generator] Fix CHECK(!accesses.empty(), ())
This commit is contained in:
parent
462b7e2543
commit
97e673e6ab
1 changed files with 1 additions and 3 deletions
|
@ -473,12 +473,10 @@ void RoadAccessTagProcessor::ProcessConditional(OsmElement const & elem)
|
|||
auto const & [tag, value] = *op;
|
||||
auto const & parser = AccessConditionalTagParser::Instance();
|
||||
auto accesses = parser.ParseAccessConditionalTag(tag, value);
|
||||
|
||||
auto & toSave = m_wayToAccessConditional[elem.m_id];
|
||||
for (auto & access : accesses)
|
||||
{
|
||||
if (access.m_accessType != RoadAccess::Type::Count)
|
||||
toSave.emplace_back(move(access));
|
||||
m_wayToAccessConditional[elem.m_id].emplace_back(move(access));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue