mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
lengthOfVoxelData already includes the length of the color data.
This commit is contained in:
parent
750843e867
commit
f4565b329a
1 changed files with 2 additions and 2 deletions
|
@ -197,8 +197,8 @@ bool createVoxelEditMessage(unsigned char command, short int sequence,
|
||||||
} else {
|
} else {
|
||||||
// add it to our message
|
// add it to our message
|
||||||
memcpy(copyAt,voxelData,lengthOfVoxelData);
|
memcpy(copyAt,voxelData,lengthOfVoxelData);
|
||||||
copyAt+=lengthOfVoxelData+SIZE_OF_COLOR_DATA;
|
copyAt+=lengthOfVoxelData;
|
||||||
actualMessageSize+=lengthOfVoxelData+SIZE_OF_COLOR_DATA;
|
actualMessageSize+=lengthOfVoxelData;
|
||||||
}
|
}
|
||||||
// cleanup
|
// cleanup
|
||||||
delete voxelData;
|
delete voxelData;
|
||||||
|
|
Loading…
Reference in a new issue