From 14b23fc0533c0116551bcbb0543e5996398e684d Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 15 Mar 2013 12:25:48 -0700 Subject: [PATCH] store octal code with VoxelNode --- shared/src/VoxelNode.cpp | 3 +++ shared/src/VoxelNode.h | 1 + 2 files changed, 4 insertions(+) diff --git a/shared/src/VoxelNode.cpp b/shared/src/VoxelNode.cpp index 7cafdfb5a6..f7abec677c 100644 --- a/shared/src/VoxelNode.cpp +++ b/shared/src/VoxelNode.cpp @@ -10,6 +10,9 @@ VoxelNode::VoxelNode() { + childMask = 0; + octalCode = NULL; + // default pointers to child nodes to NULL for (int i = 0; i < 8; i++) { children[i] = NULL; diff --git a/shared/src/VoxelNode.h b/shared/src/VoxelNode.h index 391ce470bf..383f24e523 100644 --- a/shared/src/VoxelNode.h +++ b/shared/src/VoxelNode.h @@ -15,6 +15,7 @@ class VoxelNode { public: VoxelNode(); + unsigned char *octalCode; unsigned char color[4]; VoxelNode *children[8]; unsigned char childMask;