Fix warning about comparing enums of different types (I hope)
This commit is contained in:
parent
58185147e3
commit
a891e3371f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user