diff --git a/src/pclass/EnumType.cpp b/src/pclass/EnumType.cpp index 4212346..a7bac4c 100644 --- a/src/pclass/EnumType.cpp +++ b/src/pclass/EnumType.cpp @@ -112,7 +112,7 @@ namespace pclass void EnumType::write_to(BitStream &stream, Value &value) const { // Get an Enum reference and use it to write to the stream - value.get().write_to(stream); + value.as().get().write_to(stream); } Value EnumType::read_from(BitStream &stream) const