diff --git a/deps/ox/src/ox/model/modelvalue.hpp b/deps/ox/src/ox/model/modelvalue.hpp index dd88bb64..fb202ead 100644 --- a/deps/ox/src/ox/model/modelvalue.hpp +++ b/deps/ox/src/ox/model/modelvalue.hpp @@ -532,12 +532,14 @@ class ModelUnion { m_fields[field->name] = field.get(); ++i; } + m_type = other.m_type; m_unionIdx = other.m_unionIdx; } constexpr ModelUnion(ModelUnion &&other) noexcept { m_fieldsOrder = std::move(other.m_fieldsOrder); m_fields = std::move(other.m_fields); + m_type = other.m_type; m_unionIdx = other.m_unionIdx; }