That should have been a Vector3i

This commit is contained in:
Marc Gilleron 2018-09-29 17:07:35 +01:00
parent b117a2a336
commit f9034eba08

View File

@ -119,7 +119,7 @@ void VoxelMap::get_buffer_copy(Vector3i min_pos, VoxelBuffer &dst_buffer, unsign
Vector3i min_block_pos = voxel_to_block(min_pos); Vector3i min_block_pos = voxel_to_block(min_pos);
Vector3i max_block_pos = voxel_to_block(max_pos - Vector3i(1, 1, 1)) + Vector3i(1, 1, 1); Vector3i max_block_pos = voxel_to_block(max_pos - Vector3i(1, 1, 1)) + Vector3i(1, 1, 1);
ERR_FAIL_COND((max_block_pos - min_block_pos) != Vector3(3, 3, 3)); ERR_FAIL_COND((max_block_pos - min_block_pos) != Vector3i(3, 3, 3));
const Vector3i block_size_v(_block_size, _block_size, _block_size); const Vector3i block_size_v(_block_size, _block_size, _block_size);