pclass: EnumType::write_to should first attempt cast the value to `Enum`

This commit is contained in:
pythonology 2019-01-10 23:30:54 -05:00
parent 69189e0fba
commit 680d378002
1 changed files with 1 additions and 1 deletions

View File

@ -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<Enum>().write_to(stream);
value.as<Enum>().get<Enum>().write_to(stream);
}
Value EnumType::read_from(BitStream &stream) const