diff -r 9af5c039b678 -r 96d65f841791 include/octree.h --- a/include/octree.h Mon May 05 15:31:14 2008 +0200 +++ b/include/octree.h Tue May 06 09:39:58 2008 +0200 @@ -73,11 +73,11 @@ class Octree: public Container { OctreeNode *root; + const int max_depth; bool built; - const int max_depth; public: - Octree() : Container(), root(NULL), built(false), max_depth(10) {}; - Octree(int maxdepth) : Container(), root(NULL), built(false), max_depth(maxdepth) {}; + Octree() : Container(), root(NULL), max_depth(10), built(false) {}; + Octree(int maxdepth) : Container(), root(NULL), max_depth(maxdepth), built(false) {}; ~Octree() { if (root) delete root; }; void addShape(Shape* aShape) { Container::addShape(aShape); built = false; }; Shape *nearest_intersection(const Shape *origin_shape, const Ray &ray,