[generator] don't mix ways with relations

This commit is contained in:
Darafei Praliaskouski 2013-07-12 16:55:01 +03:00 committed by Alex Zolotarev
parent 12b3a58dd7
commit d4f7329a83

View file

@ -74,8 +74,9 @@ protected:
string const & role = p->childs[i].attrs["role"];
if (type == "node")
e.nodes.push_back(make_pair(ref, role));
else
else if (type == "way")
e.ways.push_back(make_pair(ref, role));
// we just ignore type == "relation"
}
else if (p->childs[i].name == "tag")
{