Fixed unions not advancing offset
This commit is contained in:
parent
867faef496
commit
7b089a1f2f
@ -423,6 +423,8 @@ namespace hex::lang {
|
||||
for (const auto &pattern : memberPatterns)
|
||||
size = std::max(size, pattern->getSize());
|
||||
|
||||
this->m_currOffset += size;
|
||||
|
||||
return new PatternDataUnion(startOffset, size, memberPatterns);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user