diff --git a/source/lang/evaluator.cpp b/source/lang/evaluator.cpp index a630ea831..bf6b8bc33 100644 --- a/source/lang/evaluator.cpp +++ b/source/lang/evaluator.cpp @@ -450,6 +450,8 @@ namespace hex::lang { else throwEvaluateError("invalid enum underlying type"); + this->m_currOffset += size; + return new PatternDataEnum(startOffset, size, entryPatterns);; }