Fix warning about comparing enums of different types (I hope)

master
Marc Gilleron 2022-06-08 20:43:43 +01:00
parent 58185147e3
commit a891e3371f
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ ICustomVoxelMetadata *VoxelMetadataVariant::duplicate() {
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Variant get_as_variant(const VoxelMetadata &meta) {
switch (meta.get_type()) {
switch (int(meta.get_type())) {
case METADATA_TYPE_VARIANT: {
const VoxelMetadataVariant &mv = static_cast<const VoxelMetadataVariant &>(meta.get_custom());
return mv.data;