Fix comparison signedness warning (2)

This commit is contained in:
Marc Gilleron 2022-02-13 17:37:20 +00:00
parent 50555bdedc
commit c4ca66516c

View File

@ -31,7 +31,7 @@ VoxelSingleValue VoxelGenerator::generate_single(Vector3i pos, unsigned int chan
void VoxelGenerator::_b_generate_block(Ref<VoxelBuffer> out_buffer, Vector3 origin_in_voxels, int lod) {
ERR_FAIL_COND(lod < 0);
ERR_FAIL_COND(lod >= constants::MAX_LOD);
ERR_FAIL_COND(lod >= int(constants::MAX_LOD));
ERR_FAIL_COND(out_buffer.is_null());
VoxelQueryData q = { out_buffer->get_buffer(), origin_in_voxels, uint8_t(lod) };
generate_block(q);