mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-09 22:38:06 -05:00
Fix enum parent type not being set
This commit is contained in:
@ -43,6 +43,8 @@ void SequenceEnum::ProcessMatch(HeaderParserState* state, SequenceResult<HeaderP
|
||||
|
||||
if (foundTypeDefinition->GetType() != DataDefinitionType::BASE_TYPE)
|
||||
throw ParsingException(typeNameToken.GetPos(), "Enums can only have base types as parent type");
|
||||
|
||||
parentType = dynamic_cast<const BaseTypeDefinition*>(foundTypeDefinition);
|
||||
}
|
||||
|
||||
state->PushBlock(std::make_unique<HeaderBlockEnum>(name, parentType, isTypedef));
|
||||
|
Reference in New Issue
Block a user