[ox/model] Fix ModelUnion to copy type on copy and move
This commit is contained in:
parent
8077aaf0ae
commit
dba31d2cd9
2
deps/ox/src/ox/model/modelvalue.hpp
vendored
2
deps/ox/src/ox/model/modelvalue.hpp
vendored
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user