mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 00:25:44 +00:00
Fix enum parent type not being set
This commit is contained in:
parent
44e739ba44
commit
989bc9fc30
@ -43,6 +43,8 @@ void SequenceEnum::ProcessMatch(HeaderParserState* state, SequenceResult<HeaderP
|
|||||||
|
|
||||||
if (foundTypeDefinition->GetType() != DataDefinitionType::BASE_TYPE)
|
if (foundTypeDefinition->GetType() != DataDefinitionType::BASE_TYPE)
|
||||||
throw ParsingException(typeNameToken.GetPos(), "Enums can only have base types as parent 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));
|
state->PushBlock(std::make_unique<HeaderBlockEnum>(name, parentType, isTypedef));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user