Fixed enums not counting towards size of structs / enums

This commit is contained in:
WerWolv 2021-01-10 18:24:58 +01:00
parent 43d6b48cab
commit 9fe8a0f491
1 changed files with 2 additions and 0 deletions

View File

@ -450,6 +450,8 @@ namespace hex::lang {
else else
throwEvaluateError("invalid enum underlying type"); throwEvaluateError("invalid enum underlying type");
this->m_currOffset += size;
return new PatternDataEnum(startOffset, size, entryPatterns);; return new PatternDataEnum(startOffset, size, entryPatterns);;
} }