diff options
-rw-r--r-- | geometry/tree4d.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/geometry/tree4d.hpp b/geometry/tree4d.hpp index 379cd24369..c2e64a2e15 100644 --- a/geometry/tree4d.hpp +++ b/geometry/tree4d.hpp @@ -155,8 +155,8 @@ namespace m4 if (!comp(obj, isect[i]->m_val)) return; - for (typename store_vec_t::const_iterator i = isect.begin(); i != isect.end(); ++i) - m_tree.erase(**i); + for (size_t i = 0; i < isect.size(); ++i) + m_tree.erase(*isect[i]); Add(obj, rect); } |