diff options
author | Darafei Praliaskouski <komzpa@gmail.com> | 2013-05-15 19:48:07 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:54:45 +0300 |
commit | 4c85637c9eab296d879d7b31344b920eb81f48f6 (patch) | |
tree | 2a9d85a4927ea2da6c09e927664552a19e98e779 /indexer/feature_visibility.cpp | |
parent | 0233e2fd3fab366b8a48b0577b1daab63ad54493 (diff) |
[indexer] don't fail when loading new map, just ignore the new types
Diffstat (limited to 'indexer/feature_visibility.cpp')
-rw-r--r-- | indexer/feature_visibility.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indexer/feature_visibility.cpp b/indexer/feature_visibility.cpp index abeca95191..27750d245b 100644 --- a/indexer/feature_visibility.cpp +++ b/indexer/feature_visibility.cpp @@ -33,8 +33,13 @@ Classificator::ProcessObjects(uint32_t type, ToDo & toDo) const while (ftype::GetValue(type, i, v)) { p = p->GetObject(v); - path[i++] = p; - toDo(p); + if (p != 0) + { + path[i++] = p; + toDo(p); + } + else + break; } if (path.empty()) return res; |