summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--project2/basics/views/autotree.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/project2/basics/views/autotree.cpp b/project2/basics/views/autotree.cpp
index d957040..bef9695 100644
--- a/project2/basics/views/autotree.cpp
+++ b/project2/basics/views/autotree.cpp
@@ -13,7 +13,8 @@ AutoTree::AutoTree(ScriptNodePtr p) :
SourceObject(p),
View(p),
RowProcessor(p),
- root(new AutoTreeNode(p->child("tree"), 0, 0))
+ root(new AutoTreeNode(p->child("tree"), 0, 0)),
+ depth(0)
{
auto node = root;
while (node) {