diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2015-08-13 19:34:45 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 03:01:18 +0300 |
commit | 07f90e34cb993a4430ab8ac865a08e2096336b92 (patch) | |
tree | 1c4b9fbed3b2145dbd81c68cc58fdd8f3baadbaa /map/country_tree.cpp | |
parent | 6c83df2ed6bf87ad21382c7d9e25d2b3ecb28d59 (diff) |
bugfix
Diffstat (limited to 'map/country_tree.cpp')
-rw-r--r-- | map/country_tree.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/map/country_tree.cpp b/map/country_tree.cpp index 2b3d3d81a0..40b062ef29 100644 --- a/map/country_tree.cpp +++ b/map/country_tree.cpp @@ -258,11 +258,10 @@ TIndex const & CountryTree::GetCurrentRoot() const return m_levelItems[RootItemIndex]; } -void CountryTree::SetRoot(TIndex const & newIndex) +void CountryTree::SetRoot(TIndex index) { ResetRoot(); - TIndex index(newIndex); size_t const count = GetStorage().CountriesCount(index); m_levelItems.reserve(ChildItemsOffset + count); m_levelItems.push_back(index); |