fixed CR issue

This commit is contained in:
ZappoMan 2013-05-06 16:47:31 -07:00
parent 342e3e0407
commit bccad01e0e

View file

@ -387,8 +387,8 @@ void VoxelTree::loadVoxelsFile(const char* fileName, bool wantColorRandomizer) {
file.get(octets);
//printLog("octets=%d...\n",octets);
totalBytesRead++;
lengthInBytes = bytesRequiredForCodeLength(octets)-1;
unsigned char * voxelData = new unsigned char[lengthInBytes+1+3];
lengthInBytes = bytesRequiredForCodeLength(octets) - 1;
unsigned char * voxelData = new unsigned char[lengthInBytes + 1 + 3];
voxelData[0]=octets;
char byte;