summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/RTree.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RTree.hpp b/src/RTree.hpp
index 18ae3b77..7820ddd7 100644
--- a/src/RTree.hpp
+++ b/src/RTree.hpp
@@ -1265,7 +1265,7 @@ void RTREE_QUAL::ListTree(Array<Rect>& treeList, Array<Node*>& toVisit) const
while (!toVisit.isEmpty()) {
Node* a_node = toVisit.back();
- arrayRemove(toVisit, toVisit.size()-1);
+ arrayRemoveSuffix(toVisit, toVisit.size());
if(a_node->IsInternalNode())
{
// This is an internal node in the tree