diff --git a/terrain/instancing/voxel_instance_library_item.cpp b/terrain/instancing/voxel_instance_library_item.cpp index 183fc3ee..4ea4b320 100644 --- a/terrain/instancing/voxel_instance_library_item.cpp +++ b/terrain/instancing/voxel_instance_library_item.cpp @@ -54,7 +54,7 @@ bool VoxelInstanceLibraryItem::is_persistent() const { } void VoxelInstanceLibraryItem::set_mesh(Ref mesh, int mesh_lod_index) { - ERR_FAIL_INDEX(mesh_lod_index, _mesh_lods.size()); + ERR_FAIL_INDEX(mesh_lod_index, static_cast(_mesh_lods.size())); if (_mesh_lods[mesh_lod_index] == mesh) { return; } @@ -78,7 +78,7 @@ int VoxelInstanceLibraryItem::get_mesh_lod_count() const { } Ref VoxelInstanceLibraryItem::get_mesh(int mesh_lod_index) const { - ERR_FAIL_INDEX_V(mesh_lod_index, _mesh_lods.size(), Ref()); + ERR_FAIL_INDEX_V(mesh_lod_index, static_cast(_mesh_lods.size()), Ref()); return _mesh_lods[mesh_lod_index]; }