From 9fe8a0f49182fcfbdce63fb7ababd1accf99fbe7 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 10 Jan 2021 18:24:58 +0100 Subject: [PATCH] Fixed enums not counting towards size of structs / enums --- source/lang/evaluator.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);; }