lengthOfVoxelData already includes the length of the color data.

This commit is contained in:
Andrzej Kapolka 2013-05-11 15:37:06 -07:00
parent 750843e867
commit f4565b329a

View file

@ -197,8 +197,8 @@ bool createVoxelEditMessage(unsigned char command, short int sequence,
} else {
// add it to our message
memcpy(copyAt,voxelData,lengthOfVoxelData);
copyAt+=lengthOfVoxelData+SIZE_OF_COLOR_DATA;
actualMessageSize+=lengthOfVoxelData+SIZE_OF_COLOR_DATA;
copyAt+=lengthOfVoxelData;
actualMessageSize+=lengthOfVoxelData;
}
// cleanup
delete voxelData;