Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Gorshenin <y@mmaps.me>2015-04-06 17:20:19 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:41:38 +0300
commitb232f9434516af10b9763ede7dd6eead0c42c31d (patch)
treedddf064b18acbf442b17e4fa1f3c6f953e73a5e9 /map/feature_vec_model.cpp
parent5ed894e5c60310c6927be4485852046defe41a02 (diff)
Logic fixes.
Diffstat (limited to 'map/feature_vec_model.cpp')
-rw-r--r--map/feature_vec_model.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/map/feature_vec_model.cpp b/map/feature_vec_model.cpp
index ad412f4e75..d60faebc61 100644
--- a/map/feature_vec_model.cpp
+++ b/map/feature_vec_model.cpp
@@ -8,6 +8,7 @@
#include "../indexer/scales.hpp"
#include "../indexer/classificator_loader.hpp"
+#include "../base/assert.hpp"
#include "../base/logging.hpp"
#include "../std/bind.hpp"
@@ -44,8 +45,7 @@ pair<MwmSet::MwmLock, bool> FeaturesFetcher::RegisterMap(string const & file)
return p;
}
MwmSet::MwmLock & lock = p.first;
- if (!lock.IsLocked())
- return p;
+ ASSERT(lock.IsLocked(), ("Mwm lock invariant violation."));
m_rect.Add(lock.GetInfo().m_limitRect);
return p;
}