[ox/mc] Fix test struct model, fix zeroing out of empty vectors in unions
This commit is contained in:
parent
cc7c7ac9d7
commit
eed240eacc
2
deps/ox/src/ox/mc/read.hpp
vendored
2
deps/ox/src/ox/mc/read.hpp
vendored
@ -276,8 +276,8 @@ constexpr Error MetalClawReaderTemplate<Reader>::field(const char *name, T *val)
|
|||||||
val->resize(len);
|
val->resize(len);
|
||||||
return field(name, val->data(), val->size());
|
return field(name, val->data(), val->size());
|
||||||
}
|
}
|
||||||
|
val->resize(0);
|
||||||
}
|
}
|
||||||
val->resize(0);
|
|
||||||
++m_field;
|
++m_field;
|
||||||
return {};
|
return {};
|
||||||
} else if constexpr(isArray_v<T>) {
|
} else if constexpr(isArray_v<T>) {
|
||||||
|
Loading…
Reference in New Issue
Block a user