diff options
author | vng <viktor.govako@gmail.com> | 2015-07-22 17:35:33 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:57:15 +0300 |
commit | c64c35234e87cab62e788cd4eee2c2236f159dcc (patch) | |
tree | fd674ad098da4cba5a754493ee8dfd7b4a3a0876 /indexer/index.cpp | |
parent | 5399343271ccb738d2624fb25250ba3e9694e21c (diff) |
Review fixes 2.
Diffstat (limited to 'indexer/index.cpp')
-rw-r--r-- | indexer/index.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/indexer/index.cpp b/indexer/index.cpp index c34db7002a..b1c7289fce 100644 --- a/indexer/index.cpp +++ b/indexer/index.cpp @@ -24,12 +24,12 @@ MwmValue::MwmValue(LocalCountryFile const & localFile) void MwmValue::SetTable(MwmInfoEx & info) { - if (GetHeader().GetFormat() >= version::v5) - { - if (!info.m_table) - info.m_table = feature::FeaturesOffsetsTable::CreateIfNotExistsAndLoad(m_cont); - m_table = info.m_table.get(); - } + if (GetHeader().GetFormat() < version::v5) + return; + + if (!info.m_table) + info.m_table = feature::FeaturesOffsetsTable::CreateIfNotExistsAndLoad(m_cont); + m_table = info.m_table.get(); } ////////////////////////////////////////////////////////////////////////////////// |