diff options
Diffstat (limited to 'quadtree.cpp')
-rw-r--r-- | quadtree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quadtree.cpp b/quadtree.cpp index f109f63..ab08e3e 100644 --- a/quadtree.cpp +++ b/quadtree.cpp @@ -241,7 +241,7 @@ void Quadtree::create_nodes(int levels) { this->levels = levels; boost::timer t; - root = new QuadNode(this, NULL, 0, 0, width, height, 1, levels == 0); + root = new QuadNode(this, NULL, 0, 0, width-1, height-1, 1, levels == 0); std::queue<Quadtree::QuadNode*> q; if(levels > 0) q.push(root); |