[editor] Fixed bug with feature loading.

This commit is contained in:
Alex Zolotarev 2016-01-16 21:23:13 +03:00 committed by Sergey Yershov
parent daef6c4a39
commit b0256caf98

View file

@ -266,7 +266,7 @@ void Editor::LoadMapEdits()
try
{
XMLFeature const xml(nodeOrWay.node());
uint32_t const featureIndex = mapVersion < id.GetInfo()->GetVersion() ? xml.GetMWMFeatureIndex() : MigrateFeatureIndex(xml);
uint32_t const featureIndex = mapVersion == id.GetInfo()->GetVersion() ? xml.GetMWMFeatureIndex() : MigrateFeatureIndex(xml);
FeatureID const fid(id, featureIndex);
FeatureTypeInfo & fti = m_features[id][fid.m_index];