diff --git a/source/lang/evaluator.cpp b/source/lang/evaluator.cpp index 22427d18c..adff9918c 100644 --- a/source/lang/evaluator.cpp +++ b/source/lang/evaluator.cpp @@ -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); }