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); file.get(octets);
//printLog("octets=%d...\n",octets); //printLog("octets=%d...\n",octets);
totalBytesRead++; totalBytesRead++;
lengthInBytes = bytesRequiredForCodeLength(octets)-1; lengthInBytes = bytesRequiredForCodeLength(octets) - 1;
unsigned char * voxelData = new unsigned char[lengthInBytes+1+3]; unsigned char * voxelData = new unsigned char[lengthInBytes + 1 + 3];
voxelData[0]=octets; voxelData[0]=octets;
char byte; char byte;