diff --git a/voxel_map.cpp b/voxel_map.cpp index 50c2cc6..65cc553 100644 --- a/voxel_map.cpp +++ b/voxel_map.cpp @@ -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 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);